View source: R/addKernelDensity.R
addKernelDensity | R Documentation |
Add 2D kernel density contours based on selected sets of observations.
addKernelDensity(pump.subset = "pooled", pump.select = NULL, neighborhood.type = "walking", data = "unstacked", bandwidth = 0.5, color = "black", line.type = "solid", multi.core = TRUE)
pump.subset |
Character or Numeric: "pooled", "individual", or numeric vector. "pooled" treats all observations as a single set. "individual" is a shortcut for all individual pump neighborhoods. Use of vector of numeric pump IDs to subset from the neighborhoods defined by |
pump.select |
Numeric. Vector of numeric pump IDs to define pump neighborhoods (i.e., the "population"). Negative selection possible. |
neighborhood.type |
Character. "voronoi" or "walking" |
data |
Character. Unit of observation: "unstacked" uses |
bandwidth |
Numeric. Bandwidth for kernel density estimation. |
color |
Character. Color of contour lines. |
line.type |
Character. Line type for contour lines. |
multi.core |
Logical or Numeric. |
Add contours to a graphics plot.
This function uses KernSmooth::bkde2D()
.
## Not run: snowMap() addKernelDensity() snowMap() addKernelDensity("individual") snowMap() addKernelDensity(c(6, 8)) snowMap() addKernelDensity(pump.select = c(6, 8)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.