density | R Documentation |
Create density plots of values in a Raster object
## S4 method for signature 'Raster'
density(x, layer, maxpixels=100000, plot=TRUE, main, ...)
x |
Raster object |
layer |
numeric. Can be used to subset the layers to plot in a multilayer object (RasterBrick or RasterStack) |
maxpixels |
the maximum number of (randomly sampled) cells to be used for creating the plot |
plot |
if |
main |
main title for each plot (can be missing) |
... |
Additional arguments passed to base plot |
density plot (and a density object, returned invisibly if plot=TRUE)
logo <- stack(system.file("external/rlogo.grd", package="raster"))
density(logo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.