Skip to contents

Helper function to apply consistent facet_grid() styling for cluster-factor plots.

Usage

facet_mixsynergy(rows = NULL, cols = NULL, scales = "fixed", ...)

Arguments

rows

Variable(s) for facet rows (e.g., "Cluster")

cols

Variable(s) for facet columns (e.g., "Factor")

scales

Scale behavior: "fixed" (default), "free", "free_x", "free_y"

...

Additional arguments passed to facet_grid()

Value

A ggplot2 facet_grid object

Examples

if (FALSE) { # \dontrun{
library(ggplot2)
ggplot(data, aes(x, y)) + 
  geom_line() + 
  facet_mixsynergy(rows = "Cluster", cols = "Factor", scales = "free_y")
} # }