plotKIN {rKIN} | R Documentation |
Plotting function for rKIN polygons
Description
Using ggplot2 methods, simultaneously plot all of the groups and levels of niche space
Usage
plotKIN(
estObj,
scaler = 1,
alpha = 0.3,
title = "",
xlab = "x",
ylab = "y",
xmin = NULL,
xmax = NULL,
ymin = NULL,
ymax = NULL,
colors = NULL
)
Arguments
estObj |
list object created from estKIN, estMCP or estEllipse functions |
scaler |
numeric value indicating number of isotopic units to expand the x and y axes of the plot. Default is 1. |
alpha |
numeric value between 0 and 1, representing the amount of transparency of each polygon. 0 is transparent, 1 is opaque. |
title |
character string for a plot title. |
xlab |
character or expression string for the x-axis label. |
ylab |
character or expression string for the y-axis label. |
xmin |
default is NULL, numeric value of user specified minimum x axis value |
xmax |
default is NULL, numeric value of user specified maximum x axis value |
ymin |
default is NULL, numeric value of user specified minimum y axis value |
ymax |
default is NULL, numeric value of user specified maximum y axis value |
colors |
default is NULL, character vector of hex codes representing colors for plot |
Value
A plot of all groups and levels.
Author(s)
Shannon E. Albeke, Wyoming Geographic Information Science Center, University of Wyoming
Examples
library(rKIN)
data("rodents")
#estimate niche overlap between 2 species using kernel UD
test.kin<- estKIN(data=rodents, x="Ave_C", y="Ave_N", group="Species",
levels=c(50, 75, 95), scaler=2)
#determine polygon overlap for all polygons
plotKIN(test.kin, scaler = 1, title = "Kernel Estimates",
xlab = expression({delta}^13*C~ ('Per Mille')),
ylab = expression({delta}^15*N~ ('Per Mille')))