[R-sig-Geo] hide legend in plot raster
Robert Hijmans
r.hijmans at gmail.com
Wed Apr 27 06:34:26 CEST 2011
> I would like to overlay two raster objects to produce a nice map. The
> underlying raster is a hillshade, the second is transparent.
> plot(hillshade, col=grey(1:20/20))
> plot(soilraster, alpha = 0.7, add = TRUE)
> Does anybody know, how to hide the legend of the hillshade?
In addition to using Adam's suggestions, you can also have a look at the
example in the raster::hillShade function:
dem <- getData('alt', country='CHE')
slas <- slopeAspect(dem)
hill <- hillShade(slas[[1]], slas[[2]], 40, 270)
plot(hill, col=grey(0:100/100), legend=FALSE, main='Switzerland')
plot(dem, col=rainbow(25, alpha=0.35), add=TRUE)
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/hide-legend-in-plot-raster-tp6306428p6308140.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list