ssd_plot: Plot Species Sensitivity Data and Distributions

View source: R/ssd-plot.R

ssd_plotR Documentation

Plot Species Sensitivity Data and Distributions

Description

Plots species sensitivity data and distributions.

Usage

ssd_plot(
  data,
  pred,
  left = "Conc",
  right = left,
  label = NULL,
  shape = NULL,
  color = NULL,
  size = 2.5,
  linetype = NULL,
  linecolor = NULL,
  xlab = "Concentration",
  ylab = "Species Affected",
  ci = TRUE,
  ribbon = FALSE,
  hc = 5L,
  shift_x = 3,
  bounds = c(left = 1, right = 1),
  xbreaks = waiver()
)

Arguments

data

A data frame.

pred

A data frame of the predictions.

left

A string of the column in data with the concentrations.

right

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

label

A string of the column in data with the labels.

shape

A string of the column in data for the shape aesthetic.

color

A string of the column in data for the color aesthetic.

size

A number for the size of the labels.

linetype

A string of the column in pred to use for the linetype.

linecolor

A string of the column in pred to use for the line color.

xlab

A string of the x-axis label.

ylab

A string of the x-axis label.

ci

A flag specifying whether to estimate confidence intervals (by parametric bootstrapping).

ribbon

A flag indicating whether to plot the confidence interval as a grey ribbon as opposed to green solid lines.

hc

A count between 1 and 99 indicating the percent hazard concentration (or NULL).

shift_x

The value to multiply the label x values by.

bounds

A named non-negative numeric vector of the left and right bounds for uncensored missing (0 and Inf) data in terms of the orders of magnitude relative to the extremes for non-missing values.

xbreaks

The x-axis breaks as one of:

  • NULL for no breaks

  • waiver() for the default breaks

  • A numeric vector of positions

See Also

ssd_plot_cdf() and geom_ssdpoint()

Examples

ssd_plot(ssddata::ccme_boron, boron_pred, label = "Species", shape = "Group")

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