Learn R Programming

visOmopResults (version 1.0.2)

themeVisOmop: Apply visOmopResults default styling to a ggplot

Description

Apply visOmopResults default styling to a ggplot

Usage

themeVisOmop(fontsizeRef = 10)

Arguments

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