I am trying to get rid of the colorbar that shows up to the right of raster image plots. For instance, if I type the following: data(lansing) D <- density(lansing) plot(D) it always shows up with a colorbar at the right hand side. I would like to delete that colorbar. does anyone have a suggestion as to how? I have searched high and low for this, so far unsuccessfully. thank you, Paul -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/how-to-get-rid-of-colorbar-in-raster-images-tp7583964.html Sent from the R-sig-geo mailing list archive at Nabble.com.
how to get rid of colorbar in raster images
6 messages · Koen Hufkens, siqueira, Michael Sumner
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130701/4151ff73/attachment.pl>
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.
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 <siqueira at engin.umass.edu> 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 R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Michael Sumner Hobart, Australia e-mail: mdsumner at gmail.com
That worked! Thank you... and yes, please accept my apologies for not including the packages. With some of these things, "I don't know what I don't know" which is what makes this difficult. For instance, who would have thunk that that thing was called the 'ribbon'. I was searching for "colorkey" and "colorbar", which of course produced nothing. thank you again! Paul -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/how-to-get-rid-of-colorbar-in-raster-images-tp7583964p7583968.html Sent from the R-sig-geo mailing list archive at Nabble.com.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130701/511913d9/attachment.pl>