Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

graph_paths

Visualise dose-paths as a graph


Description

Visualise dose-paths as a graph

Usage

graph_paths(paths, viridis_palette = "viridis", RColorBrewer_palette = NULL)

Arguments

paths

Object of type dose_paths

viridis_palette

optional name of a colour palette in the viridis package.

RColorBrewer_palette

optional name of a colour palette in the RColorBrewer package.

Details

The viridis package supports palettes: viridis, magma, plasma, inferno, and cividis. The RColorBrewer package supports many palettes. Refer to those packages on CRAN for more details.

Examples

paths <- get_three_plus_three(num_doses = 5) %>%
  get_dose_paths(cohort_sizes = c(3, 3, 3))
## Not run: 
graph_paths(paths)
graph_paths(paths, viridis_palette = 'plasma')
graph_paths(paths, RColorBrewer_palette = 'YlOrRd')

## End(Not run)

escalation

Modular Approach to Dose Finding Clinical Trials

v0.1.4
GPL (>= 3)
Authors
Kristian Brock [aut, cre] (<https://orcid.org/0000-0002-3921-0166>)
Initial release
2020-10-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.