Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

ggalign (version 0.0.4)

stack_layout: Put plots horizontally or vertically

Description

ggstack is an alias of stack_layout.

Usage

stack_layout(
  data,
  direction = NULL,
  sizes = NA,
  ...,
  guides = waiver(),
  theme = NULL
)

ggstack( data, direction = NULL, sizes = NA, ..., guides = waiver(), theme = NULL )

Value

A StackLayout object.

Arguments

data

A numeric or character vector, a data frame, or a matrix.

direction

A string of "horizontal" or "vertical", indicates the direction of the stack layout.

sizes

A numeric or unit object of length 3 indicates the relative widths (direction = "horizontal") / heights (direction = "vertical").

...

<dyn-dots> A list of plots, ususally the ggplot object. Use NULL to indicate an empty spacer.

guides

A string containing one or more of "t", "l", "b", and "r" indicates which side of guide legends should be collected. If NULL, no guide legends will be collected. If waiver(), it will inherit from the parent layout

theme

A theme() used to render the guides, title, subtitle, caption, margins, patch.title, panel.border, and background. If NULL (default), will inherit from the parent layout.

Examples

Run this code
ggstack(matrix(rnorm(100L), nrow = 10L)) + align_dendro()

Run the code above in your browser using DataLab