Hi Marcus,
That's almost it! So ncol and column do the same thing in different
functions... gah!
Because my real use of xyplot I override the default plotting colors and
character, autokey doesn't 'know' this, so they don't match.
So the addition of the par.settings element is needed (from another e-mail):
xyplot(1~1,
auto.key=list(
bty='n',
columns=4,
text=c('How','to make','this into', 'a grob?'),
space="top")
par.settings=simpleTheme(pch=rep(c(15,17),2),col=c('brown','green','blue','red')
)
My legend is flat and color coordinated now.
Thank you very much!
--
View this message in context:
http://r.789695.n4.nabble.com/Creating-a-flat-legend-grob-for-lattice-xyplot-tp3699235p3699351.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.