plot_facets: Utility function to facet a plot

Description Usage Arguments Value

View source: R/plot_facets.R

Description

Utility function to facet a plot

Usage

1
2
3
4
5
6
7
plot_facets(
  plot,
  facet_rows = c(),
  facet_columns = c(),
  facet_type = "grid",
  ...
)

Arguments

plot

ggplot object

facet_rows

column names from original data frame to be used in facet rows if facet_type == "grid" else columns to be faceted

facet_columns

column names from original data frame to be used in facet columns if facet_type == "grid" else columns to be faceted

facet_type

either "wrap" or "grid"

...

params passed into either facet_wrap or facet_grid, depending on facet_type parameter

Value

ggplot object


keshav-motwani/ggexp documentation built on Feb. 4, 2021, 2:21 a.m.