Message-ID: <501569B9.3070006@gmail.com>
Date: 2012-07-29T16:50:01Z
From: mlell08
Subject: Simple x,y Plot
In-Reply-To: <1343575085562-4638262.post@n4.nabble.com>
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,
> colClasses=c("real","real"))
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.
daten<-read.table("C:/Users/Robert/Desktop/regen.txt", header=FALSE,dec=",)
Viele Gr??e,
Moritz
--
GnuPG Key: 0x7340821E