[R] two scales for one plot

Christian Ruckert cruckert at uni-muenster.de
Thu Mar 18 15:59:38 CET 2010


Maybe this is what you are searching for:

2-Y-axes on same plot
https://stat.ethz.ch/pipermail/r-help/2008-December/182374.html

Best regards,
Christian

Bunny, lautloscrew.com wrotes:
> 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
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list