contourLevel: Density level for a percentage contour

Description Usage Arguments Value

View source: R/visualization.R

Description

Get the 2D density breakpoint needed to generate a contour encompassing a specific percentage of probability density.

Usage

1
contourLevel(x, y, prob = 0.95)

Arguments

x,y

Numeric vectors corresponding to scatterplot coordinates.

prob

Vector of numerics between 0 and 1, representing the proportion of probability density to include in the contour.

Value

A vector of length equal to probs, specifying the breakpoints corresponding to each prob.


matthewkling/ecoclim documentation built on May 21, 2019, 1:04 p.m.