[R] Plot error

James Platt james-platt at hotmail.co.uk
Sat Jul 17 16:50:54 CEST 2010

Hi guys,

I am a newbie to R, so apologies in advance.

I created this simple table in excel, saved in tab delimited .txt:

name value_1 value_2
1 bill       1            4
2 ben      2           2
3 jane     3           1

 >test <-read.table("\path\to\file", sep="\t", header=TRUE)

 >x <-c(seq["value_1"])
 >y <-c(seq["value_2"])


and i get this error

Error in xy.coords(x, y, xlabel, ylabel, log) :
   (list) object cannot be coerced to type 'double'

What does this mean and how do i fix it?

Thanks for the help, James

More information about the R-help mailing list