View source: R/helperFunctions.R
setGlobalPlotOptions | R Documentation |
Set format options for all subsequent plots unless state a different style in a specific function
setGlobalPlotOptions(style = NULL)
style |
Which style to apply to the plot, options are: "default", "darwin" and NULL (default ggplot style). Customised styles can be achieved by modifying the returned ggplot object. |
setGlobalPlotOptions(style = "darwin")
result <- mockSummarisedResult() |>
dplyr::filter(variable_name == "age")
scatterPlot(
result = result,
x = "cohort_name",
y = "mean",
line = TRUE,
point = TRUE,
ribbon = FALSE,
facet = age_group ~ sex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.