[R] Simple x,y Plot

sappy robert.wittkopf at gmx.de
Sun Jul 29 17:18:05 CEST 2012


Dear Community,

i have read in a table with two column from a *txt-File. What i get is a
data-frame wit two column.
After that i allocate this 2 column to x and y. Plotting this, i obtain a
picture that looks like a bar plot (something like a grid).
Is that because x and y is in factor-formatted? A conversion with
"asnumeric" doesnt work. I get a vector with "NA".

Here is my code:

daten<-read.table("C:/Users/Robert/Desktop/regen.txt", header=FALSE,
colClasses=c("real","real"))
x<-daten[,1]
y<-daten[,2]
plot(x,y)

Greetings 



--
View this message in context: http://r.789695.n4.nabble.com/Simple-x-y-Plot-tp4638262.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list