Skip to content
Prev 205209 / 398506 Next

xyplot: problems with column names & legend

Hi,

Using backticks might work to some extent,

library(lattice)
`my variable` = 1:10
y=rnorm(10)
xyplot(`my variable` ~ y)

but if your data is in a data.frame the names should have been converted,

make.names('my variable')
[1] "my.variable"


HTH,

baptiste

2010/1/3 Jay <josip.2000 at gmail.com>: