Skip to contents

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

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)