kde2pol: Extract contours from an object of class 'kde'

Description Usage Arguments Value Author(s) See Also

View source: R/kde2pol.R

Description

Extracts contours from an object of class kde from package ks

Usage

1
kde2pol(k,proj4string,levels=c(50,95),cut=TRUE)

Arguments

k

An object of class kde generated with the kde function for kernel smoothing.

proj4string

The projection to apply to the resulting polygons. If cut = TRUE, the k object has to be in projected coordinates.

levels

A vector of positive integer values for the contours wanted.

cut

When cut = TRUE, polygons will be cutted with the underlying denser polygons (holes will be built). Otherwise, they will be left as is.

Value

A SpatialPolygonsDataFrame object with ids corresponding to the chosen contours.

Author(s)

Francois Rousseu

See Also

kde


frousseu/FRutils documentation built on April 8, 2021, 3:03 p.m.