If you set it through par.settings then it will affect both the drawing and the legend:
xyplot(Sepal.Length ~ Petal.Length, iris, groups = Species, auto.key = TRUE, par.settings = list(superpose.symbol = list(pch = "*", cex = 1))) On 8/2/06, Kaushik Katari <[EMAIL PROTECTED]> wrote: > I am doing a xyplot: (x~y, groups = z, pch=8, auto.key=T). This changes > the symbol in the graph to an asterisk (*), but not in the legend, which > is still an open circle. I have found out how to manipulate the position > and the color of the letters in the legend, but cannot change the legend > symbol to match the symbol in the graph. Could you help? > > > > Thanks, > > Kaushik > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch 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. > ______________________________________________ R-help@stat.math.ethz.ch 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.