[R] lattice plots: filled points in the key

Renaud Lancelot renaud.lancelot at gmail.com
Sun May 27 19:11:59 CEST 2007


I wonder why the following code does not produce filled points in the
key, as I would have expected:

> library(lattice)
> x <- 1:10
> y <- rnorm(10)
> xyplot(y ~ x, pch = 21, col = "black", fill = "grey",
+        key = list(space = "top",
+                   text = list("data"),
+                   points = list(pch = 21, col = "black", fill = "grey")))

Is there a simple solution to get filled points un the key ?

Renaud


> sessionInfo()
R version 2.5.0 (2007-04-23)
i386-pc-mingw32

locale:
LC_COLLATE=French_France.1252;LC_CTYPE=French_France.1252;LC_MONETARY=French_France.1252;LC_NUMERIC=C;LC_TIME=French_France.1252

attached base packages:
[1] "stats"     "graphics"  "grDevices" "utils"     "datasets"
"methods"   "base"

other attached packages:
 lattice
"0.15-6"


-- 
Renaud LANCELOT
Département Systèmes Biologiques du CIRAD
CIRAD, Biological Systems Department

Campus International de Baillarguet
TA 30 / B
F34398 Montpellier
Tel   +33 (0)4 67 59 37 17
Secr. +33 (0)4 67 59 37 37
Fax   +33 (0)4 67 59 37 95



More information about the R-help mailing list