Skip to contents

ggstack is an alias of stack_layout.

Usage

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

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

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.

...

These dots are for future extensions and must be empty.

sizes

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

action

A plot_action() object used to define the default plot action in the 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.

Value

A StackLayout object.

Examples

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