Hello all,

When I tried to plot the following two arrays in one figure with the following:

x = c(0,0,0,10,20,30)
y = c(40,50,60,70,80,90)
plot(x, type='o', ylim=c(min(x),max(x)))
par(new=T)
plot(y, type='l', ylim=c(min(y),max(y)))

Found that the first points and last points from those two arrays are 
overlapping together, but the value 30 is not equal to 90. How could I draw 
those two arrays in one plot with their real values shown in the plot? i.e., x 
is in the lower part of the plot and y is in the upper part of the plot.

Thanks very much!

Cheers,

Rebecca



----------------------------------------------------------------------
This message, and any attachments, is for the intended r...{{dropped:5}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to