That's not a "raster", but an "im" (from package spatstat).
See ?plot.im plot(D, ribbon = FALSE) (And please declare enough for someone to reproduce your example, including of course loaded packages). On Mon, Jul 1, 2013 at 11:27 PM, siqueira <[email protected]> wrote: > Thank you for the quick reply Koen! > > ... however, that does not seem to work. That is, maybe it has to do with > the density function... I just don't know. > > That is, if I type what you suggested, I get plot with symbols, not a raster > image. I have included a snapshot of what I get if I execute the following > commands in R > > data(lansing) > D <- density(lansing) > plot(D,main="tree density",axes=FALSE,legend=FALSE,box=FALSE) > > <http://r-sig-geo.2731867.n2.nabble.com/file/n7583966/R_colorbar_image.jpg> > > it is that colorbar at the right that I am trying to eliminate. > > > > -- > View this message in context: > http://r-sig-geo.2731867.n2.nabble.com/how-to-get-rid-of-colorbar-in-raster-images-tp7583964p7583966.html > Sent from the R-sig-geo mailing list archive at Nabble.com. > > _______________________________________________ > R-sig-Geo mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Michael Sumner Hobart, Australia e-mail: [email protected] _______________________________________________ R-sig-Geo mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-geo
