Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ssd_plot

SSD Plot


Description

SSD Plot

Usage

ssd_plot(
  data,
  pred,
  left = "Conc",
  right = left,
  label = NULL,
  shape = NULL,
  color = NULL,
  size = 2.5,
  xlab = "Concentration",
  ylab = "Percent of Species Affected",
  ci = TRUE,
  ribbon = FALSE,
  hc = 5L,
  shift_x = 3
)

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.

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.

Examples

ssd_plot(boron_data, boron_pred, label = "Species", shape = "Group")

ssdtools

Species Sensitivity Distributions

v0.3.3
Apache License (== 2.0) | file LICENSE
Authors
Joe Thorley [aut, cre, ctr] (<https://orcid.org/0000-0002-7683-4592>), Carl Schwarz [aut, ctr], Angeline Tillmanns [ctb], Ali Azizishirazi [ctb], Rebecca Fisher [ctb], David Fox [ctb], Kathleen McTavish [ctb], Heather Thompson [ctb], Andy Teucher [ctb], Emilie Doussantousse [ctb], Stephanie Hazlitt [ctb], Nadine Hussein [ctb], Nan-Hung Hsieh [ctb], Sergio Ibarra Espinosa [ctb], Province of British Columbia [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.