Skip to contents

[Experimental]

This function integrates the functionalities of quad_free(), quad_alignh(), quad_alignv(), and quad_alignb() into a single interface.

Usage

quad_layout(
  data = NULL,
  align = NULL,
  mapping = aes(),
  ...,
  theme = NULL,
  active = NULL,
  width = NA,
  height = NA
)

Arguments

data

Default dataset to use for the layout. If not specified, it must be supplied in each plot added to the layout. By default, it will try to inherit from parent layout. The conversion of data depends on the align argument and will use, fortify_data_frame() or fortify_matrix():

  • If align is NULL, a data frame is required. When inherited by the annotation stack, no transposition will be applied.

  • If align is a string, a matrix is required. When inherited by the column annotation stack, it will be transposed.

align

A string indicating the alignment direction:

  • "horizontal": Align plots horizontally.

  • "vertical": Align plots vertically.

  • "both": Align plots in both directions.

By default, the function does not align observations.

mapping

Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.

...

Additional arguments passed to fortify_matrix() or fortify_data_frame().

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.

active

A active() object that defines the context settings when added to a layout.

width, height

The relative width/height of the main plot, can be a unit object.