[R] multiple series on same graph

WARR Benjamin benjamin.warr at insead.edu
Wed Jan 30 16:13:31 CET 2002


Hi Collin,

you can also try overlaying plots using par(new=...)

plot(x,y1)
par(new=TRUE)
plot(x,y2)

this plots in the same device, but take care with the annotations by using

par(ann=F)

to suppress them

good luck

Benjamin Warr

Research Associate
Centre for the Management of Environmental Resource(CMER)
INSEAD


> -----Original Message-----
> From: Collin Carbno [mailto:collin.carbno at sk.sympatico.ca]
> Sent: 30 January 2002 02:20
> To: r-help at hypatia.math.ethz.ch
> Subject: [R] multiple series on same graph
> 
> 
> I'm trying to duplicate some graphs from powerpoint in R package.  One
> of things I'm having trouble with is I don't understand how to use the
> points command to create different sets of points with different color
> and marking attributes, and a legend on the graph.  Where 
> should I look?
> I can't seem to find an example of two different sets of data on the
> same graph.
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> r-help mailing list -- Read 
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: 
> r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020130/f363397b/attachment.html


More information about the R-help mailing list