Learn R Programming

aop (version 1.0.0)

plot_metaregression_confidence_envelope: Plot the metaregression confidence envelope and median results from the bootstrap metaregression models.

Description

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

Usage

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

Run this code
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)

Run the code above in your browser using DataLab