[R] plot

Ko-Kang Kevin Wang k.wang at auckland.ac.nz
Tue Feb 17 02:30:10 CET 2004

> -----Original Message-----
> From: Justin Xi ZHU [mailto:j.zhu at imb.uq.edu.au] 
> Sent: Tuesday, February 17, 2004 2:30 PM
> To: Ko-Kang Kevin Wang
> Subject: RE: [R] plot
> Hi,
> Thanks for your email.
> Result 1: 23, 234, 45, 39 corresponding to Q1, Q2, Q3 and Q4.
> Result 2: 123, 34, 454, 45 corresponding to Q1, Q2, Q3 and Q4.
> I would like to plot both result 1 and result 2 on the same 
> graph. The 
> x-axis is Q1, Q2, Q3 and Q4. I would like to compare two trends.
> Regards, Justin

What you can do is to plot the question labels on the x-axis and use
points (with different types/colours) and/or lies for the two "Results".

You may want to take a look at the documentation for plot(), points() or

I'm sure there are better plots, but I'll leave that to the other
r-helpers to help you -- I'm too busy finishing up a consulting report



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