graph_paths | R Documentation |
Visualise dose-paths as a graph
graph_paths(paths, viridis_palette = "viridis", RColorBrewer_palette = NULL)
paths |
Object of type |
viridis_palette |
optional name of a colour palette in the viridis package. |
RColorBrewer_palette |
optional name of a colour palette in the RColorBrewer package. |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.