Apply a pre-defined visOmopResults theme to a ggplot
Arguments
- style
Character indicating which pre-defined style to apply. Refer to the function
plotStyle()
to see the available styles.- fontsizeRef
An integer to use as reference when adjusting label fontsize.
Examples
result <- mockSummarisedResult() |> dplyr::filter(variable_name == "age")
barPlot(
result = result,
x = "cohort_name",
y = "mean",
facet = c("age_group", "sex"),
colour = "sex") +
themeVisOmop()
#> Warning: Ignoring empty aesthetic: `width`.