add_colors | R Documentation |
ggm
objectUsing add_colors()
is part of the theme process for a ggm
object, which in turn is a visual representation of an egm
object. Often,
the egm
dataset will contain default colors based on where the signal
data was brought in from. add_colors()
can allow customization of those
features to some degree based on opinionated color palettes.
add_colors(object, palette, mode)
object |
A |
palette |
A
|
mode |
A
|
Currently, the color choices are individual decided based on the
channel source (e.g. lead) and are inspired by some modern palettes. The
eventual goal for this function is to accept a multitude of palette options
using heuristics similar to what is found in {ggplot2}
or other graphing
packages.
Returns an updated ggm
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.