Prepare facetting columns in the plotting data.
prepare_facets(
x_long,
x,
facet_in,
layout,
context = c("row", "col"),
dendro = NULL
)Long format plotting data with facetting column added.
Long format plotting data.
Wide format plotting data.
Facetting user input (vector or data frame).
Plot layout vector.
Context of facetting (row or col).
List containing clustering results (or NULL if no clustering).