plotGroupHulls: Plots illustrative convex hulls for each group within all...

View source: R/plotGroupHulls.R

plotGroupHullsR Documentation

Plots illustrative convex hulls for each group within all communities

Description

This function loops over each community and group within, and plots a convex hull around the data. N.B. use of convex hulls to compare isotopic niche width among groups within or between communities is not recommended owing to strong sample size bias. Use of ellipse area is recommended instead. This feature is provided for illustrative purposes only, and because some people have expressed a desire for this feature for figure generation. See demonstration scripts for more examples.

Usage

plotGroupHulls(siber, plot.args = NULL, iso.order = c(1, 2), ...)

Arguments

siber

a siber object as created by createSiberObject

plot.args

a list of plotting arguments for passing to graphics::lines(). See graphics::lines() for details of the options. See also the demonstration scripts for examples of use.

iso.order

a vector of length 2, either c(1,2) orc(2,1). The order determines which of the columns of raw data are plotted on the x (1) or y (2) axis. N.B. this will be deprecated in a future release, and plotting order will be achieved at point of data-entry.

...

additional arguments to be passed to addEllipse().

Value

A series of convex hulls added to an existing plot.


AndrewLJackson/SIBER documentation built on June 7, 2024, 3:21 a.m.