View source: R/plot_sensitivity.R
plot_sensitivity | R Documentation |
Plot results of sensitivity analysis.
plot_sensitivity(
x,
metric = "GCA.Eff",
assay = NULL,
y = "",
xlab = metric,
ylab = ""
)
x |
GeoTox object. |
metric |
metric to plot. Valid choices are "GCA.Eff", "IA.Eff", "GCA.HQ.10", and "IA.HQ.10". |
assay |
which assay to plot, if multiple exist. |
y |
y value or text for bottom of ridge plot. |
xlab |
x-axis label. |
ylab |
y-axis label. |
ggplot2 object.
# Required GeoTox fields are generated by first running [calculate_response]
# and [sensitivity_analysis] on a GeoTox object. This will create the fields
# `resp` and `sensitivity`. For this example, dummy data will be used.
make_data <- function(n = 5, metric = "GCA.Eff") {
list(stats::setNames(data.frame(1:n, runif(n)),
c("sample", metric)))
}
geoTox <- GeoTox()
geoTox$resp <- make_data()
geoTox$sensitivity <- list(age = make_data(),
obesity = make_data(),
css_params = make_data(),
fit_params = make_data(),
C_ext = make_data())
plot_sensitivity(geoTox)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.