> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Justin Xi ZHU
> Sent: Tuesday, February 17, 2004 11:10 AM
> To: [EMAIL PROTECTED]
> 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

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to