Skip to contents

Apply a pre-defined visOmopResults theme to a ggplot

Usage

themeVisOmop(style = "default", fontsizeRef = 11)

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`.