raster (version 1.1.7)

density: Density plot

Description

Create a density plots of values in a RasterLayer

Usage

density(x, ...)

Arguments

x
RasterLayer object
...
Additional arguments passed to plot

Value

  • A density plot (and a density object, returned invisibly of plot=TRUE).

Methods

A full call as implemented here: density(x, layer, maxpixels=100000, plot=TRUE, main, ...) layer can be used to subset the layers to plot in a multilayer object (RasterBrick or RasterStack) maxpixels is the maximum number of (randomly sampled) cells to be used for creating the density plot see plot for the other arguments