Message-ID: <1387036132.85326.YahooMailNeo@web142602.mail.bf1.yahoo.com>
Date: 2013-12-14T15:48:52Z
From: arun
Subject: plot two columns against one
In-Reply-To: <BLU170-W124EAA2E54DEE694C5EDF1189DE0@phx.gbl>
HI,
Using ?ggplot()
s <-read.table(text="A????? B??????? C
0.451? 0.333? 1134????????
0.491? 0.270? 1433????
0.389? 0.249? 7784????
0.425? 0.819? 6677
0.457? 0.429? 99053????
0.436? 0.524? 111049
0.423? 0.270? 121093
0.463? 0.315? 131019",sep="",header=TRUE)
library(ggplot2)
ggplot(s,aes(x=A,y=B,colour=C))+geom_text(label=s$C) + theme_bw()
A.K.
On Saturday, December 14, 2013 9:30 AM, eliza botto <eliza_botto at hotmail.com> wrote:
Dear users of R,
How can i plot the values in column "C" with "A" on x-axis and "B" on y-axis?s <-
"A? ? ? B? ? ? ? C? ? 0.451? 0.333? 1134? ? ? ? ?
0.491? 0.270? 1433? ? ?
0.389? 0.249? 7784? ? ?
0.425? 0.819? 6677?
0.457? 0.429? 99053? ? ?
0.436? 0.524? 111049? ? ? 0.423? 0.270? 121093? ? ? 0.463? 0.315? 131019 Thankyou very much in advance,
Eliza
??? ??? ??? ? ??? ??? ?
??? [[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.