plot_metaregression_confidence_envelope: Plot the metaregression confidence envelope and median...

Description Usage Arguments Examples

View source: R/pod_analysis.R

Description

A function to plot the metaregression confidence envelope and median results from the bootstrap metaregression models.

Usage

1
2
3
plot_metaregression_confidence_envelope(bootstrap_metaregression_obj,
  graph_pod = FALSE, pod, pod_threshold, median_line_color = "orange",
  pod_and_threshold_color = "green")

Arguments

bootstrap_metaregression_obj

the object that contains the bootstrap metaregression models as a bmr object.

graph_pod

a boolean that determines if the point of departure will be displayed on the graph.

pod

the chemical's point of departure as a numeric value

pod_threshold

the threshold value used to calculate the chemical's point of departure.

median_line_color

the color for the median line, default is "orange".

pod_and_threshold_color

the color of the POD and threshold "crosshairs" on the plot. The default is "green".

Examples

1
2
3
4
5
6
bmr_obj <- bootstrap_metaregression(oxybenzone, 15, 100)
slope_pod <- slope_pod_analysis(bmr_obj, 0.0001, 10, 0.1)
pod_and_threshold <- pod_envelope_analysis(bmr_obj, slope_pod, 10,
  min(oxybenzone$Concentration), max(oxybenzone$Concentration), 0.1)
plot_metaregression_confidence_envelope(bmr_obj, graph_pod = TRUE,
  pod = pod_and_threshold$pod, pod_threshold=pod_and_threshold$threshold)

DataSciBurgoon/aop documentation built on May 6, 2019, 1:52 p.m.