efftox_utility_density_plot {trialr} | R Documentation |
Plot densities of EffTox dose utilities
Description
Plot densities of EffTox dose utilities. Optionally plot only a
subset of the doses by specifying the doses
parameter. This function
requires ggplot2 be installed.
Usage
efftox_utility_density_plot(fit, doses = NULL)
Arguments
fit |
An instance of |
doses |
optional, vector of integer dose-levels to plot. E.g. to plot
only dose-levels 1, 2 & 3 (and suppress the plotting of any other doses), use
|
Value
an instance of ggplot
. Omit assignment to just view the plot.
Note
This function requires that ggplot2 be installed.
Examples
fit <- stan_efftox_demo('1N 2E 3B')
efftox_utility_density_plot(fit) + ggplot2::ggtitle('My doses') # Too busy?
# Specify subset of doses to make plot less cluttered
efftox_utility_density_plot(fit, doses = 1:3) + ggplot2::ggtitle('My doses')
[Package trialr version 0.1.6 Index]