These settings control the behavior of the plot when added to a layout, as well as the arrangement of individual plot areas within the layout.
Arguments
- order
An integer specifying the order of the plot area within the layout.
- use
A logical (
TRUE
/FALSE
) indicating whether to set the active context to the current plot when added to a layout. IfTRUE
, any subsequentggplot
elements will be applied to this plot.- name
A string specifying the plot's name, useful for switching active contexts through the
what
argument in functions likequad_anno()
/stack_switch()
.
Details
By default, the active context is set only for functions that add plot areas.
This allows other ggplot2
elements-such as geoms
, stats
, scales
, or
themes
- to be seamlessly added to the current plot area.
The default ordering of the plot areas is from top to bottom or from left to
right, depending on the layout orientation. However, users can customize this
order using the order
argument.