[R] plot
Ko-Kang Kevin Wang
k.wang at auckland.ac.nz
Tue Feb 17 01:28:47 CET 2004
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Justin Xi ZHU
> Sent: Tuesday, February 17, 2004 11:10 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] plot
>
>
> Hi,
>
> How could I plot two vectors on the same graph? For example,
> if I have two
> lists of results, each list is a vector. I want to display
> them on the same
> graph, so I can compare them. How could I do that?
You have to be more specific. What kind of vertors are they? Are they
both numeric continuous variables? What kind of plot(s) do you want to
draw?
Assuming you have two continuous variables and you want to draw a
scatter plot, one way to do it is to use plot(). For example:
plot(x, y)
Take a loot at ?plot to find out how to use it.
Kevin
--------------------------------------------
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co-ordinator
Student Learning Centre
University of Auckland
New Zealand
More information about the R-help
mailing list