<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [R] multiple series on same graph</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Collin,</FONT>
</P>
<P><FONT SIZE=2>you can also try overlaying plots using par(new=...)</FONT>
</P>
<P><FONT SIZE=2>plot(x,y1)</FONT>
<BR><FONT SIZE=2>par(new=TRUE)</FONT>
<BR><FONT SIZE=2>plot(x,y2)</FONT>
</P>
<P><FONT SIZE=2>this plots in the same device, but take care with the annotations by using</FONT>
</P>
<P><FONT SIZE=2>par(ann=F)</FONT>
</P>
<P><FONT SIZE=2>to suppress them</FONT>
</P>
<P><FONT SIZE=2>good luck</FONT>
</P>
<P><FONT SIZE=2>Benjamin Warr</FONT>
</P>
<P><FONT SIZE=2>Research Associate</FONT>
<BR><FONT SIZE=2>Centre for the Management of Environmental Resource(CMER)</FONT>
<BR><FONT SIZE=2>INSEAD</FONT>
</P>
<BR>
<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Collin Carbno [<A HREF="mailto:collin.carbno@sk.sympatico.ca">mailto:collin.carbno@sk.sympatico.ca</A>]</FONT>
<BR><FONT SIZE=2>> Sent: 30 January 2002 02:20</FONT>
<BR><FONT SIZE=2>> To: r-help@hypatia.math.ethz.ch</FONT>
<BR><FONT SIZE=2>> Subject: [R] multiple series on same graph</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I'm trying to duplicate some graphs from powerpoint in R package. One</FONT>
<BR><FONT SIZE=2>> of things I'm having trouble with is I don't understand how to use the</FONT>
<BR><FONT SIZE=2>> points command to create different sets of points with different color</FONT>
<BR><FONT SIZE=2>> and marking attributes, and a legend on the graph. Where </FONT>
<BR><FONT SIZE=2>> should I look?</FONT>
<BR><FONT SIZE=2>> I can't seem to find an example of two different sets of data on the</FONT>
<BR><FONT SIZE=2>> same graph.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.</FONT>
<BR><FONT SIZE=2>> -.-.-.-.-.-.-.-.-</FONT>
<BR><FONT SIZE=2>> r-help mailing list -- Read </FONT>
<BR><FONT SIZE=2>> <A HREF="http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html" TARGET="_blank">http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html</A></FONT>
<BR><FONT SIZE=2>> Send "info", "help", or "[un]subscribe"</FONT>
<BR><FONT SIZE=2>> (in the "body", not the subject !) To: </FONT>
<BR><FONT SIZE=2>> r-help-request@stat.math.ethz.ch</FONT>
<BR><FONT SIZE=2>> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.</FONT>
<BR><FONT SIZE=2>> _._._._._._._._._</FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
</BODY>
</HTML>