hist.SpatialPixelsDataFrame function

Histograms of Mapped Variables

Histograms of Mapped Variables

hist.SpatialPixelsDataFrame performs histograms of the variables mapped in objects of class SpatialPixelsDataFrame.

## S3 method for class 'SpatialPixelsDataFrame' hist(x, type = c("h", "l", "b"), adjust = 1, col, border, lwd = 1, ...)

Arguments

  • x: a raster map of class SpatialPixelsDataFrame

  • type: what type of plot should be drawn. Possible types are:

    • "h" for histograms,

    • "l" for kernel density estimates (see ?density).

    • "b" for both histograms and kernel density estimates (see ?density).

    By default, type = "h" is used. If type = "l" is used, the position of the mean of each distribution is indicated by dotted lines

  • adjust: if type = "l", a parameter used to control the bandwidth of the density estimate (see ?density)

  • col: color for the histogram

  • border: color for the border of the histogram

  • lwd: if type = "l", line width for the density estimate

  • ...: further arguments passed to or from other methods

Author(s)

Mathieu Basille basille@ase-research.org

See Also

SpatialPixelsDataFrame-class for additionnal information on objects of class SpatialPixelsDataFrame.

Examples

data(lynxjura) hist(lynxjura$map, type = "h") hist(lynxjura$map, type = "l")
  • Maintainer: Clement Calenge
  • License: GPL (>= 2)
  • Last published: 2024-09-06

Useful links