ssd_sort_data: Sort Species Sensitivity Data

View source: R/utils.R

ssd_sort_dataR Documentation

Sort Species Sensitivity Data

Description

Sorts Species Sensitivity Data by empirical cumulative density (ECD).

Usage

ssd_sort_data(data, left = "Conc", right = left)

Arguments

data

A data frame.

left

A string of the column in data with the concentrations.

right

A string of the column in data with the right concentration values.

Details

Useful for sorting data before using geom_ssdpoint() and geom_ssdsegment() to construct plots for censored data with stat = identity to ensure order is the same for the various components.

Value

data sorted by the empirical cumulative density.

See Also

ssd_ecd_data() and ssd_data()

Examples

ssd_sort_data(ssddata::ccme_boron)

ssdtools documentation built on Sept. 8, 2023, 5:56 p.m.