[R] Lattice symbol size and legend margins

From: Gattuso, Jean-Pierre <gattuso2_at_obs-vlfr.fr>
Date: Fri 25 Aug 2006 - 02:30:39 EST


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)),
	trellis.par.set(plot.symbol = list(cex=2)),
	layout=c(1, 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?


Jean-Pierre Gattuso

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. Received on Fri Aug 25 02:38:58 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 25 Aug 2006 - 04:26:29 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.