[R] plot two columns against one
David Carlson
dcarlson at tamu.edu
Sat Dec 14 16:34:58 CET 2013
Please do not send emails using html. Please use dput() to send
your data to the list
> st <- read.table(text=s, header=TRUE)
> plot(B~A, st, type="n")
> with(st, text(A, B, C))
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of eliza botto
Sent: Saturday, December 14, 2013 8:30 AM
To: r-help at r-project.org
Subject: [R] plot two columns against one
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.
More information about the R-help
mailing list