Sorts Species Sensitivity Data by empirical cumulative density (ECD).
Usage
ssd_sort_data(data, left = "Conc", right = left)
Value
data sorted by the empirical cumulative density.
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.