Skip to content
Prev 274598 / 398506 Next

right justify right-axis tick values in lattice

Hi
On 16/10/2011 6:17 p.m., Richard M. Heiberger wrote:
You could do this ...

library(grid)
oldx <- grid.get("plot_01.ticklabels.right.panel.1.1")$x
grid.edit("plot_01.ticklabels.right.panel.1.1",
           just="right",
           x=oldx + stringWidth("000"))

Paul

 >