search for: nddd

Displaying 1 result from an estimated 1 matches for "nddd".

Did you mean: ddd
2009 May 08
1
centering axis labels in lattice
...For example, the y-axis labels are always right-justified, but I would like them to be horizontally centered. Here's an example: library(lattice); # create fake dataset to plot to.plot <- data.frame( x = 1:5, y = c("1\nAAA", "2\nBBB", "3\nCCC", "4\nDDD", "5\nEEE") ); # initial plot, note that the y-axis labels are right-justified xyplot( y ~ x, to.plot, pch = 19, ylab = "", xlab = "", cex = 3 ); # now try to set the positioning via scales xyplot( y ~ x, to.plot, pch = 19, ylab = "", xlab...