Description Usage Arguments Value Examples
This function takes a ggplot
object and source data frame, d
, and adds manual color and fill scale layers
based on cby
and clr
and/or faceting based on fby
and scales
.
The data frame, d
, is passed for determining the levels of the factor cby
in d
.
The cby
and fby
columns in d
must be factors.
Like coloring, faceting must be done by a single factor variable, not crossed factors.
1 | colorFacet(g, d, cby, clr, fby, scales)
|
g |
a ggplot object. |
d |
a data frame. |
cby |
character, factor column in |
clr |
character, color vector. If |
fby |
character, factor column in |
scales |
character, passed to |
a ggplot object.
1 | #not run
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.