I have a simple, single test.txt data file that contains:
1 5 7 9 11
I want to build this file with index numbers. I tried the following:
mydata<-read.table("test.txt") sq<-seq(1,5) x<-data.frame(sq) plot(x,mydata)
But the plot is not generated. Instead, an error message is displayed:
Error in stripchart.default (x1, ...): invalid plotting method
Can you indicate what I am doing wrong, or suggest a better solution?
source share