Learn R Programming

ggalign (version 1.0.1)

continuous_limits: Set continuous limits for the layout

Description

To align continuous axes, it is important to keep the limits consistent across all plots in the layout. You can set the limits by passing a function directly to the limits or xlim/ylim argument, using ... only. Alternatively, you can add a continuous_limits() object to the layout. For the quad_layout() function, you must specify x/y arguments. For other layouts, you should pass the limits using ... directly.

Usage

continuous_limits(..., x = waiver(), y = waiver())

Arguments

...

A list of two numeric values, specifying the left/lower limit and the right/upper limit of the scale.

x, y

Same as ..., but specifically for quad_layout().