[R] Adding a second y axis and specifying yaxs="i"

John Kane jrkrideau at yahoo.ca
Thu Oct 25 19:32:14 CEST 2007


It is not clear what the problem is. Please give us a
small reproducable example of the problem as suggested
in the posting guide.

--- Cameron Guenther <cguenther at kieser-associates.com>
wrote:

> Hello All,
> I have plotted a barplot and placed a line plot over
> top using 
> par(new=TRUE).
> In the first plot I have specified that yaxs="i" and
> xaxs="i".  However 
> when I add a new axis to side 4 (right) and try to
> specify yaxs="i" it 
> does nothing and the axis line begins above the x
> axis when I want the 
> two points to meet.  Can anyone tell me how to
> specify the secondary y 
> axis to be in the "i" format.
> Thanks.
> 
> -- 
> Cameron Guenther, Ph.D.
> Project Scientist
> Kieser & Associates, LLC
> 536 E. Michigan Ave., Suite 300
> Kalamazoo, MI 49007
> (269)344-7117
> cguenther at kieser-associates.com
> www.kieser-associates.com
> 
> ______________________________________________
> 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