Skip to contents

Apply visOmopResults default styling to a ggplot

Usage

themeVisOmop(fontsizeRef = 13, legendPosition = "right")

Arguments

fontsizeRef

An integer to use as reference when adjusting label fontsize.

legendPosition

If there is a legend, where should it go? Options are the same as for ggplot. By default it is in the right side.

Examples

# \donttest{
result <- mockSummarisedResult() |> dplyr::filter(variable_name == "age")

barPlot(
  result = result,
  x = "cohort_name",
  y = "mean",
  facet = c("age_group", "sex"),
  colour = "sex") +
  themeVisOmop()

# }