I am using sp 1.0-14 and lattice 0.20.27.
Best,
Oscar.
-
Oscar Perpiñán Lamigueiro
Dpto. Ingeniería Eléctrica (ETSIDI-UPM)
Grupo de Sistemas Fotovoltaicos (IES-UPM)
URL: http://oscarperpinan.github.io
Twitter: @oscarperpinan
Hi Oscar,
Thanks for the reply. Unfortunately your example doesn't work for me. What
version of sp and lattice do you have installed?
Package: sp
Version: 1.0-14
Date: 2013-10-15
Package: lattice
Version: 0.20-15
Date: 2013/03/24
Mark
On 7 March 2014 16:25, Oscar Perpiñan
Hi,
I have a problem where I would like to have both the colour and the symbol
varying in an spplot plot. Unfortunately, specifying a list of pch values
doesn't seem to work. See the following example
library(sp)
data(meuse)
coordinates(meuse) - ~x +y
#Lets plot the elevation
spplot(meuse,elev)
Use groups instead:
spplot(meuse[elev], groups=ifelse(meuse$dist 0.3, 1, 2), pch=c(1, 16))
Oscar.
-
Oscar Perpiñán Lamigueiro
Dpto. Ingeniería Eléctrica (ETSIDI-UPM)
Grupo de Sistemas Fotovoltaicos (IES-UPM)
URL: