Ronaldo Reis Junior
2007-Aug-05 13:18 UTC
[R] setup trellis.device to color=F inside the xyplot function
Hi, it is possible to setup trellis.device(color=F) inside teh function xyplot? I try to use> xyplot(ocup~tempo|nitro+estacao,col="white",ylim=c(0,0.7),par.settings=list(color=F)) But dont work, the only way that work for me is call the function> trellis.device(color=F)before the xyplot, but in this way it open a new device for each run. I like that is use the same device every time, but without colors. Thanks Ronaldo -- Our similarities are different. -Dale Berra, son of Yogi --> Prof. Ronaldo Reis J?nior| .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Ecologia | : :' : Campus Universit?rio Prof. Darcy Ribeiro, Vila Mauric?ia | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil | `- Fone: (38) 3229-8187 | ronaldo.reis em unimontes.br | chrysopa em gmail.com | http://www.ppgcb.unimontes.br/ | ICQ#: 5692561 | LinuxUser#: 205366
Sundar Dorai-Raj
2007-Aug-05 17:23 UTC
[R] setup trellis.device to color=F inside the xyplot function
Ronaldo Reis Junior said the following on 8/5/2007 6:18 AM:> Hi, > > it is possible to setup trellis.device(color=F) inside teh function xyplot? > > I try to use > >> xyplot(ocup~tempo| > nitro+estacao,col="white",ylim=c(0,0.7),par.settings=list(color=F)) > > But dont work, the only way that work for me is call the function > >> trellis.device(color=F) > > before the xyplot, but in this way it open a new device for each run. I like > that is use the same device every time, but without colors. > > Thanks > RonaldoTry this: library(lattice) x <- 1:10 y <- 1:10 g <- rep(1:2, 5) # no color xyplot(y ~ x | g, par.settings = standard.theme(color = FALSE)) xyplot(y ~ x, groups = g, par.settings = standard.theme(color = FALSE)) # with color xyplot(y ~ x | g) xyplot(y ~ x, groups = g) HTH, --sundar