[R] How to add two different axis to one plot?

From: Michael <comtech.usa_at_gmail.com>
Date: Mon 30 Jan 2006 - 14:49:11 EST


Hi all,

I need to put two different axis to one plot. On the top of the plot, I need to put one axis, with increments from left side to the right side; then at the bottom of the same plot, I need to put another axis, with increments from right side to the left side and showing a different unit. How do I do that?

By the way, is there a "hold" command for plotting?

If I first plot a picture, how to add another "plot" command onto it without erasing it?

In matlab, it can be convinient done by "hold on" and "hold off"... and can I do it in R?

Thanks a lot,

Micheal

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jan 30 14:58:32 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:14 EST