John G. Bullock
2007-Dec-10 00:30 UTC
[R] lattice: placing y-axis labels on right-hand side of panel when relation="sliced"
Hello, 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? I checked the R Graph Gallery and the figures to Deepayan's new book but saw nothing that would help. I'm using R 2.5.0 and lattice 0.16-1 on Windows XP. Thank you, --John
John G. Bullock
2007-Dec-10 16:56 UTC
[R] lattice: placing y-axis labels on right-hand side of panel when relation="sliced"
> 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.
Possibly Parallel Threads
- lattice: axes drawn when relation='free' or relation='sliced' but not when relation='same'
- Axes Labels on the Right side of lattice panel
- bwplot [lattice]: how to get different y-axis scales for each row?
- has_one mapping with arbitrary right and left hand side keys
- how to change number of itemes appeare in right-hand-side of the rule with apriori in R(arules)?