Learn R Programming

adehabitat (version 1.8.12)

hist.kasc: Histograms of Mapped Variables

Description

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

Usage

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

Arguments

x
a raster map of class kasc
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
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

See Also

kasc

Examples

Run this code
## Example with factors and numeric variables
data(puechabon)
hist(puechabon$kasc, type = "h")

## Aspect is a factor, then it's not possible to use 
## kernel density estimates for it :
hist(puechabon$kasc)

## Removing the factor Aspect, and smoothing gives :
hist(puechabon$kasc[-2], type = "l")

Run the code above in your browser using DataLab