[R] Exporting a Graph that has lines()

R_Learner sschiang8 at gmail.com
Thu Jul 3 22:14:55 CEST 2008

I'm trying to export a graph (any form is good). I'm trying to export one
that uses plot() then lines(). however, it seems that the jpeg format and
the pdf format only takes the first line plot, and doesn't even consider the
additional plots. My code is the following:
plot((x_data) ~ (y_data), main = filez)
lines (x,z,col="red")

The pdf only comes out with the graph of the plot, and not of the lines.
Does anyone know how to export multiple graph items on one plot?

View this message in context: http://www.nabble.com/Exporting-a-Graph-that-has-lines%28%29-tp18267441p18267441.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list