alignpatch {ggalign}R Documentation

Building alignpatches object

Description

Prepare plots to be aligned with align_plots

Extend object to be aligned with align_plots

Usage

alignpatch(x)

patch_gtable(patch, guides)

## S3 method for class 'ggplot'
patch_gtable(patch, guides)

## S3 method for class 'alignpatches'
patch_gtable(patch, guides)

## S3 method for class 'wrapped_plot'
patch_gtable(patch, guides)

## S3 method for class 'patch'
patch_gtable(patch, guides)

## S3 method for class 'wrapped_patch'
patch_gtable(patch, guides)

patch_align(gt, guides, panel_width, panel_height)

Arguments

x

A plot object to be prepared for alignment.

patch

A patch to be aligned.

guides

Input guides argument to align_plots()

gt

A gtable object from patch_gtable.

panel_width, panel_height

Size of the panel, if the size is NA, we should guess the size from the aspect ratio of the gt.

Details

ggalign has implement patch_gtable method for following objects:

Value

Examples

alignpatch(ggplot())
patch_gtable(ggplot())

[Package ggalign version 0.0.3 Index]