add_facet: Facet a plot according to specified variables

Description Usage Arguments Value

Description

Facet a plot according to specified variables

Usage

1
2
add_facet(p, facet_terms = NULL, facet_scales = "fixed",
  facet_space = "fixed")

Arguments

p

[ggplot object] A plot object we might want to facet.

facet_terms

[list of strings] The names of the columns of the data used in generating p which we want to facet by. Defaults to NULL, in which case no faceting is applied.

Value

p [ggplot object] The version of p including potential faceting.


krisrs1128/ggscaffold documentation built on May 20, 2019, 1:26 p.m.