Hi all,

I need to produce two different spplot figures of spatial points, and I would like to ask your help for the creation of the second one:

1) the first figure has to show the values but without any legend:

library(sp)
xyz = data.frame(expand.grid(x=1:10,y=1:10),rnorm(100))
coordinates(xyz)=~x+y
spplot(xyz, cex=10, alpha=0.7, auto.key=FALSE)

(I don't have any problem with this)


2) The second figure has to show ONLY the legend for the values of the previous figure (without plotting the points), inside the plotting area.

I tried with:

spplot(xyz, cex=0, alpha=0.7, auto.key=TRUE, key.space="center")

but it doesn't work.


I know that "center" is not a valid argument for 'key.space', but I don't figure out how to produce this second figure.


I would really appreciate any help with this.

Thanks in advance,

Mauricio Zambrano-Bigiarni

--
=======================================================
FLOODS Action
Water Resources Unit (H01)
Institute for Environment and Sustainability (IES)
European Commission, Joint Research Centre (JRC)
webinfo    : http://floods.jrc.ec.europa.eu/
=======================================================
DISCLAIMER:\ "The views expressed are purely those of th...{{dropped:11}}

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to