efftox_utility_density_plot: Plot densities of EffTox dose utilities

View source: R/efftox_utility_density_plot.R

efftox_utility_density_plotR 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 efftox_fit.

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 doses = 1:3

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')


trialr documentation built on April 1, 2023, 12:03 a.m.