Skip to contents

Facets a plot_serocurve() plot by antigen-isotype and/or Stratification, choosing a sensible default ncol when one isn't supplied.

Usage

add_serocurve_facets(
  p,
  curve_summary,
  antigen_iso_col,
  antigen_iso,
  facet_by_strat,
  facet_by_antigen_iso = length(antigen_iso) > 1,
  ncol = NULL
)

Arguments

facet_by_antigen_iso

logical; if TRUE, facets the plot by antigen-isotype. Defaults to TRUE when multiple antigen-isotypes are requested.

ncol

integer; number of columns when faceting. If NULL (default), a sensible value is chosen automatically.

Value

A ggplot2::ggplot object with facets.