- result
A summarised_result object (output of
summariseObservationPeriod()).
- variableName
The variable to plot it can be: "Number subjects",
"Records per person", "Duration in days" or
"Days to next observation period".
- plotType
The plot type, it can be: "barplot", "boxplot" or
"densityplot".
- facet
Columns to face by. Formula format can be provided. See possible
columns to face by with: visOmopResults::tidyColumns().
- colour
Columns to colour by. See possible columns to colour by with:
visOmopResults::tidyColumns().
- style
Visual theme to apply. Character, or NULL. If a character,
this may be either the name of a built-in style (see
visOmopResults::plotStyle()), or a path to a .yml file that defines a
custom style. If NULL, the function will use the explicit default style,
unless a global style option is set (see visOmopResults::setGlobalPlotOptions())
or a _brand.yml file is present (in that order).
- type
Character string indicating the output plot format. See
visOmopResults::plotType() for the list of supported plot types. If
type = NULL, the function will use the global setting defined via
visOmopResults::setGlobalPlotOptions() (if available); otherwise, a
standard ggplot2 plot is produced by default.