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
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
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.
thx everybody. The twoord.plot from the plotrix packages just helped ! Sometimes you just don?t find what you?re looking for - even if it is that simple... On 18.03.2010, at 15:59, Christian Ruckert wrote:> 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. >