Another way is to:
plot(...)
par(new=T)
plot(...)
Notes:
1. par(new=T) means the plot area will not be cleared for the next plot.
2. Make sure that both plots have the same xlim, ylim, xlab, ylab, and main so you
don't get words printed on top of each other.
3. You can use legend(...) to create a legend to clarify which curve is which
Iain's suggest of add=T might be easier!
Best regards,
Joseph
Joseph Poj Gavinlertvatana
Doctoral student, Marketing
Harvard Business School
203 Wyss Hall, Soldiers Field, Boston, MA 02163
Ph?? 617.230.5907
Fx 617.496.4397
Txt/Vm 617.910.0563
Em pgavinlertvatana at
hbs.edu
-----Original Message-----
From: gov2001-l-bounces at
lists.fas.harvard.edu [mailto:gov2001-l-bounces at
lists.fas.harvard.edu] On Behalf Of Ashley Anderson
Sent: Wednesday, February 17, 2010 10:05 PM
To: Class List for Gov 2001/E-2001
Subject: [gov2001] 2 plots, 1 graph
Dear all,
I'm trying to get two curves to show up on one graph. Any ideas as to how to
execute that?
-Ashley Anderson
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l