Learn R Programming

ggalign (version 1.2.0)

plot_add_scheme: Apply a Scheme to a plot

Description

plot_add_scheme() is a generic used to apply a Scheme (or a Schemes container) to a plot object. This allows schemes to update or modify the plot's appearance or behavior according to their configuration.

Usage

plot_add_scheme(plot, scheme, ...)

Value

The modified plot object.

Arguments

plot

A plot object, typically a ggplot.

scheme

A Scheme or Schemes object to apply.

...

Additional arguments passed to specific methods.

Details

By default When a Schemes object is passed, each individual Scheme is applied in sequence via its respective plot_add_scheme() method.