me_labeller | R Documentation |
This is a function to pass facet labels to ggplot functions facet_grid
and facet_wrap
,
so that the facets have the module color name as the label. Basically, it strips off the "ME" and
returns the label in a format that ggplot understands.
me_labeller(variable, value)
variable |
not used by this function. Included for compatibility with |
value |
character vector containing the levels of the factor used for facetting. Generally passed directly to the function by |
This function is intended to be used in faceting with facet_grid
or facet_wrap
, as follows: facet_grid(. ~ module, labeller = me_labeller)
.
An object of the same dimension as value
, with any "ME" strings removed from each element.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.