Problem of legend using spplot in R
This is a lattice question; IIRC it was asked once and answered negatively by the author of lattice.
On 10/23/2013 01:53 PM, baremma2002 wrote:
Dear users, How can I make disappeared only the axes of the map and not the barline in the bar legend using spplot in R? The code is like: library(sp) data(meuse) coordinates(meuse) = ~x+y data(meuse.grid) coordinates(meuse.grid) = ~x+y gridded(meuse.grid) = TRUE lzn.vgm = variogram(log(zinc)~1, meuse) lzn.fit = fit.variogram(lzn.vgm, model = vgm(1, "Sph", 900, 1)) lzn.kriged = krige(log(zinc)~1, meuse, meuse.grid, model = lzn.fit) spplot(lzn.kriged,"var1.pred") The map has a legend with predicted values. Using this: spplot(lzn.kriged,"var1.pred",par.settings=list(axis.line=list(col='transparent'))) the axes of the map and the right bar line for the legend disappear. How can I perform the R code in order to get only the black bar line on the legend (on the right of the map)? In other words, I would like to make disappeared only the axes of the map but not the black line of the bar legend. Thank you very much for your answer. Emmanuel -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Problem-of-legend-using-spplot-in-R-tp7584940.html Sent from the R-sig-geo mailing list archive at Nabble.com.
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Edzer Pebesma Institute for Geoinformatics (ifgi), University of M?nster Heisenbergstra?e 2, 48149 M?nster, Germany. Phone: +49 251 83 33081 http://ifgi.uni-muenster.de GPG key ID 0xAC227795 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 555 bytes Desc: OpenPGP digital signature URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20131023/35e12a40/attachment.bin>