Learn R Programming

visOmopResults (version 1.3.1)

themeVisOmop: Apply a pre-defined visOmopResults theme to a ggplot

Description

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

Run this code
result <- mockSummarisedResult() |> dplyr::filter(variable_name == "age")

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

Run the code above in your browser using DataLab