[R] Simple x,y Plot
mlell08 at gmail.com
Sun Jul 29 18:50:01 CEST 2012
On 29.07.2012 17:18, sappy wrote:
> 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,
As you are german, I suppose you used the comma as decimal separator.
You need to specify that in read.table by dec="," or R won't be able to
parse your numbers.
GnuPG Key: 0x7340821E
More information about the R-help