Re: [R] dotplot legend

2014-12-17 Thread Duncan Mackay
rthnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of r...@openmailbox.org Sent: Wednesday, 17 December 2014 22:25 To: r-help@r-project.org Subject: [R] dotplot legend Subscribers, For this example: library(lattice) testmatrix<-matrix(c(1,2,3

Re: [R] dotplot legend

2014-12-17 Thread Michael Dewey
On 17/12/2014 12:24, r...@openmailbox.org wrote: Subscribers, For this 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(labels=testylabels), xlab=NULL)) legend('bottomright', 'legend', c

[R] dotplot legend

2014-12-17 Thread rl
Subscribers, For this 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(labels=testylabels), xlab=NULL)) legend('bottomright', 'legend', col=c('blue', 'pink')) Error in strwidth(legend, unit