setGlobalPlotOptions: Set format options for all subsequent plots

View source: R/helperFunctions.R

setGlobalPlotOptionsR Documentation

Set format options for all subsequent plots

Description

Set format options for all subsequent plots unless state a different style in a specific function

Usage

setGlobalPlotOptions(style = NULL)

Arguments

style

Which style to apply to the plot, options are: "default", "darwin" and NULL (default ggplot style). Customised styles can be achieved by modifying the returned ggplot object.

Examples

setGlobalPlotOptions(style = "darwin")

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

scatterPlot(
  result = result,
  x = "cohort_name",
  y = "mean",
  line = TRUE,
  point = TRUE,
  ribbon = FALSE,
  facet = age_group ~ sex)


visOmopResults documentation built on Sept. 9, 2025, 5:42 p.m.