Re: [R] lattice: placing y-axis labels on right-hand side of panel when relation="sliced"

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Mon, 10 Dec 2007 14:51:58 -0800

On 12/10/07, John G. Bullock <john.bullock_at_aya.yale.edu> wrote:
>
> > I'm using lattice to create a multi-panel figure. I would like
> > to draw each panel's y-axis ticks and labels on the right-hand
> > side of the panel. Ordinarily, I would do this by specifying
> > scales=list(y=list(draw=T, alternating=2)). But in this case, I am
> > using relation="sliced" to determine the y-axis limits. So
> > "alternating" is ignored. Is there any way -- short of using grid
> > functions -- to place the y-axis ticks and labels on the right-hand
> > sides of these panels?
>
> panel.axis() is what I had in mind.

You might consider the 'axis' argument (see ?axis.default). The main catch is that you will need to allocate the space explicitly.

-Deepayan



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. Received on Mon 10 Dec 2007 - 23:16:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Dec 2007 - 23:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.