plot_doseresponse: Plots simulated data and dose-response curves for a...

View source: R/plotting.R

plot_doseresponseR Documentation

Plots simulated data and dose-response curves for a population

Description

Plots simulated data and dose-response curves for a population

Usage

plot_doseresponse(experiment_df, plot_curves = TRUE)

Arguments

experiment_df

a simulated population

plot_curves

a Boolean indicating whether to plot the true dose-response curves

Value

a ggplot object

Examples

# generate dose-response data for n=200 individuals measured at four lux levels
experimental_data <- virtual_experiment(n=200, lux=c(1, 10, 100, 1000))

# plot data
plot_doseresponse(experimental_data)

mellux-project/melluxdrc documentation built on March 25, 2022, 8:09 p.m.