You might be able to do it with overplotting,(i.e., do the solid grey using the pch values in the 20s and then use a hollow symbol to put a black border on it) but I don't see a natural way to change the background color for just those characters. How'd you do so on the body of the plot?
examples(legend) might also have some useful tricks. Michael 2012/1/19 Uwe Ligges <lig...@statistik.tu-dortmund.de>: > > > On 19.01.2012 15:02, Tsidkenu wrote: >> >> Thanks for the reply but I want to color (of gray) the triangle, square, >> circle and the other symbol appear in the legend. > > > PLEASE do read the posting guide. > > Uwe Ligges > > > >> >> >> -- >> View this message in context: >> http://r.789695.n4.nabble.com/Filling-color-s-points-in-legend-s-plot-in-R-tp4308966p4310070.html >> Sent from the R help mailing list archive at Nabble.com. >> >> ______________________________________________ >> R-help@r-project.org 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@r-project.org 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@r-project.org 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.