Description Usage Arguments Value Examples
Create density plots of values in a Raster object
1 2 |
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)
1 2 | logo <- stack(system.file("external/rlogo.grd", package="raster"))
density(logo)
|
Loading required package: sp
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.