[R] dotplot axes labelling

rl at openmailbox.org rl at openmailbox.org
Mon Dec 15 17:02:35 CET 2014


Subscribers,

What is my mistake with the following example:

library(lattice)
testmatrix<-matrix(c(1,2,3,4,3,6,12,24),nrow=4,ncol=2)
testylabels<-c('w1','x1','y1','z1')
dotplot(testmatrix, scales=list(y=list(testylabels)), xlab=NULL)
#testylabels not shown, instead 'D' 'C' 'B' 'A'

Thanks in advance.

--



More information about the R-help mailing list