[R] two scales for one plot

David Winsemius dwinsemius at comcast.net
Thu Mar 18 15:45:29 CET 2010

In some sense you _are_ in the wrong list because there is a strong  
opposition to that presentation strategy, but there are plenty of  
worked examples in the archives and I believe that some plotting  
functions in plotrix will also do this, twoord.plot perhaps?

On Mar 18, 2010, at 10:40 AM, Bunny, lautloscrew.com wrote:

> Dear all,
> i am looking for a possibility to use two lines in the same plot  
> with different scales. i.e the standard y-axis should represent the  
> line created by vector x and the vertical line vice versa should be  
> used as a second y-axis for the plot of vector y.  I´ve seen that  
> often, particularly in the visualization of timelines (because the x- 
> axis remains the same) and wonder if there´s a possibility to do so  
> in R, too. If I am on the wrong list, please let me know. Thx in  
> advance for any help.
> best regards
> bunny

David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list