Skip to contents

Lightweight port of seaborn.FacetGrid. In reaborn, faceting is usually done by adding + ggplot2::facet_wrap()/facet_grid() to a plot, or via the figure-level functions (relplot, displot, catplot, lmplot). This constructor returns a base plot you can map geoms onto.

Usage

FacetGrid(
  data,
  row = NULL,
  col = NULL,
  hue = NULL,
  col_wrap = NULL,
  height = 3,
  aspect = 1,
  palette = NULL
)

Arguments

data

A data frame.

row, col, hue

Faceting / hue variables.

col_wrap

Wrap columns at this width.

height, aspect

Facet sizing.

palette

Hue palette.

Value

A reaborn_plot.