initializePlot: initializePlot

View source: R/atom-plots.R

initializePlotR Documentation

initializePlot

Description

Initialize a ggplot object and set its labels, grid, background and watermark

Usage

initializePlot(plotConfiguration = NULL)

Arguments

plotConfiguration

An optional PlotConfiguration object defining labels, grid, background and watermark

Value

A ggplot graphical object

References

For examples, see: https://www.open-systems-pharmacology.org/TLF-Library/articles/atom-plots.html

See Also

Other atom plots: addErrorbar(), addLine(), addRibbon(), addScatter()

Examples

# Initialize an empty plot
p <- initializePlot()

# Implement a customized configuration using PlotConfiguration
config <- PlotConfiguration$new(title = "My Plot", xlabel = "x variable", ylabel = "y variable")
p <- initializePlot(config)


Open-Systems-Pharmacology/TLF-Library documentation built on Feb. 8, 2025, 11:22 a.m.