[R] Lattice xyplot: Fill Legend Points

Rich Shepard rshepard at appl-ecosys.com
Fri Oct 18 14:28:45 CEST 2013


On Fri, 18 Oct 2013, S Ellison wrote:

> Using trellis.par.set seems more successful than specifying par.settings
> in the call, however much I'd prefer to avoid relying on globals. Example:
>
> ss<-trellis.par.get("superpose.symbol")
> ss$pch=rep(19,7)
> ss$col=rainbow(7)
> trellis.par.set(superpose.symbol=ss)
>
> #Example from xyplot
> dotplot(variety ~ yield | site, data = barley, groups = year,
>         key = simpleKey(levels(barley$year), space = "right"),
>         xlab = "Barley Yield (bushels/acre) ",
>         aspect=0.5, layout = c(1,6), ylab=NULL)

   Thank you.

Rich

-- 
Richard B. Shepard, Ph.D.          |      Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863



More information about the R-help mailing list