[R] plot

MMarques Power mmarques at inescporto.pt
Tue Feb 17 13:45:55 CET 2004


Hello Justin,

Monday, February 16, 2004, 10:10:21 PM, you wrote:

JXZ> How could I plot two vectors on the same graph? For example, if I have two
JXZ> lists of results, each list is a vector. I want to display them on the same 
JXZ> graph, so I can compare them. How could I do that?
JXZ> Regards, Justin

There several aproachs to that question.

Something like
plot(x, type ="l")
lines(y)
if both vectors have the same range...

another is

par(mfrow=c(1,2))
plot(x)
plot(y)

with each plot in diferent boxes...


Still reading the plot help and par could  be needed



or





Best regards,
 MMarques                            mailto:mmarques at power.inescn.pt




More information about the R-help mailing list