View source: R/plottingThemes.R
| themeVisOmop | R Documentation |
Apply a pre-defined visOmopResults theme to a ggplot
themeVisOmop(style = NULL, fontsizeRef = NULL)
style |
Visual theme to apply. Character, or |
fontsizeRef |
An integer to use as reference when adjusting label fontsize. |
result <- mockSummarisedResult() |> dplyr::filter(variable_name == "age")
barPlot(
result = result,
x = "cohort_name",
y = "mean",
facet = c("age_group", "sex"),
colour = "sex") +
themeVisOmop()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.