Port of seaborn.catplot. Dispatches to stripplot (kind = "strip"),
boxplot, barplot, pointplot, or countplot and adds row/col faceting.
Returns a faceted reaborn_plot.
Usage
catplot(
data = NULL,
x = NULL,
y = NULL,
hue = NULL,
row = NULL,
col = NULL,
kind = "strip",
estimator = "mean",
errorbar = list("ci", 95),
n_boot = 1000,
seed = NULL,
units = NULL,
weights = NULL,
order = NULL,
hue_order = NULL,
row_order = NULL,
col_order = NULL,
col_wrap = NULL,
height = 5,
aspect = 1,
orient = NULL,
color = NULL,
palette = NULL,
legend = "auto",
facet_kws = NULL,
...
)Arguments
- data
A data frame.
- x, y
Variables; the categorical one defines the groups.
- hue
Grouping variable for color (dodged).
- row, col, col_wrap, row_order, col_order
Faceting controls.
- kind
One of
"strip","box","bar","point","count".- estimator, errorbar, n_boot, seed
Aggregation settings (bar/point).
- units
Unit grouping for bootstrap (bar/point kinds).
- weights
Observation weights (bar/point kinds).
- order, hue_order
Level orderings.
- height, aspect
Facet sizing (stored as attributes).
- orient
"v","h", orNULLto infer.- color
Single color override.
- palette
Palette for the hue mapping.
- legend
Legend control.
- facet_kws
Reserved for compatibility.
- ...
Passed to the underlying plotter.
