y1)
# Or, using the data.frame directly,
plot(y ~ x, data=dat2)
Hope this helps,
Rui Barradas
Hope this helps.
A.K.
- Original Message -
From: sappy
To: r-help@r-project.org
Cc:
Sent: Sunday, July 29, 2012 11:18 AM
Subject: [R] Simple x,y Plot
Dear Community,
i have read in a
Thanks a lot. It Works.
--
View this message in context:
http://r.789695.n4.nabble.com/Simple-x-y-Plot-tp4638262p4638274.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/l
3 5 4 3 1
dat2<-dat1
dat2$x<-as.numeric(as.character(dat2$x) )
is.numeric(dat2$x)
#[1] TRUE
dat2$y<-as.numeric(as.character(dat2$y))
is.numeric(dat2$y)
#[1] TRUE
#Now try plot
x1<-dat2[,1]
y1<-dat2[,2]
plot(x1,y1)
Hope this helps.
A.K.
- Original Message -
From: sa
On 2012-07-29 08: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 beca
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).
>
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?
6 matches
Mail list logo