[R] Problem with Example with Lattice
Lorenzo Isella
lorenzo.isella at gmail.com
Sat May 27 15:03:05 CEST 2017
Dear All,
I am making my baby steps with the lattice graphic system.
I am going through the great book by Sarkar which provides plenty of
examples.
However, I notice that some of them appear to give a different result
on my system.
For instance, consider the following
library(lattice)
library(latticeExtra)
dotplot(VADeaths, type = "o",
auto.key = list(lines = TRUE, space = "right"),
main = "Death Rates in Virginia - 1940",
xlab = "Rate (per 1000)")
This should produce a plot where I have different point shapes
connected by different line shapes, but I only one point shape
connected by solid segments.
Am I misunderstanding something basic?
Many thanks
Lorenzodeepayan.sarkar at r
sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)
Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.0
LAPACK: /usr/lib/lapack/liblapack.so.3.0
locale:
[1] LC_CTYPE=en_GB.utf8 LC_NUMERIC=C
[3] LC_TIME=en_GB.utf8 LC_COLLATE=en_GB.utf8
[5] LC_MONETARY=en_GB.utf8 LC_MESSAGES=en_GB.utf8
[7] LC_PAPER=en_GB.utf8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.utf8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] latticeExtra_0.6-28 RColorBrewer_1.1-2 lattice_0.20-35
loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0 grid_3.4.0
More information about the R-help
mailing list