[R] Lattice symbol size and legend margins

Gabor Grothendieck ggrothendieck at gmail.com
Thu Aug 24 19:05:32 CEST 2006


Try par.settings=
You can find examples via:
    RSiteSearch("par.settings") .

On 8/24/06, Gattuso, Jean-Pierre <gattuso2 at obs-vlfr.fr> wrote:
> Hi:
>
> I am using the following command:
>
> xyplot(dat6$CO3*1e6 ~ dat6$irradiance, data=dat6, group=ref,
>        xlab=list(label=expression(paste("Irradiance (", mu, "mol photons",
> m^"-2", " ", s^"-1", ")")), cex=1.3),
>        ylab=list(label=expression(paste("Carbonate concentration (x ", 10^"6",
> " ", kg^"-1", ")")) , cex=1.3),
>        scales = list(x = list(cex=1.1), y = list(cex=1.1)),
>        type="p",
>        trellis.par.set(plot.symbol = list(cex=2)),
>        layout=c(1, 1),
>        aspect=1,
>        auto.key = list(cex=1.2, between=4, space="right", border=T)
>        )
>
> And get the following error:
>
>        Error in multiple && !outer : invalid 'x' type in 'x && y'
>
> I know it comes from the trellis.par.set command: I am unable to find
> the right syntax.
>
> A second question: I am adjusting the left and right margins between the
> text of the legend and the border using "between". How can I control the
> top and bottom margins?
>
> Thanks,
>
> Jean-Pierre Gattuso
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list