Learn R Programming

ssdtools (version 0.3.7)

ssd_plot: SSD Plot

Description

Plots species sensitivity data.

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

Run this code
# NOT RUN {
ssd_plot(boron_data, boron_pred, label = "Species", shape = "Group")
# }

Run the code above in your browser using DataLab