I was surprised this worked at all, as I usually use the formula interface.
Anyway, you need to explicitly specify the point types via the pch argument. The default uses trellis.par.get("dot.symbol"), which is just a single value. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, May 27, 2017 at 6:03 AM, Lorenzo Isella <lorenzo.ise...@gmail.com> wrote: > 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@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 > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.