scale_fill_nycc | R Documentation |
The functions scale_*_continuous
and scale_*_discrete
are
exported from this package as aliases for the functions scale_*_nycc
with appropriate default arguments. Because of this, these colors will
overwrite ggplot2
's default scales. To prevent this, either set scales
manually in plots by calling ggplot2::scale_*
, or attach
ggplot2
after councildown
.
scale_fill_nycc(palette = "mixed", discrete = TRUE, reverse = FALSE, ...)
scale_color_nycc(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_color_discrete(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_color_continuous(...)
scale_fill_discrete(palette = "mixed", discrete = TRUE, reverse = FALSE, ...)
scale_fill_continuous(...)
palette |
One of |
discrete |
Boolean, should the scale be discrete? |
reverse |
Boolean, reverse the order of the selected palette |
... |
Further arguments passed to |
When discrete
is TRUE
arguments are passed via ...
to
discrete_scale
. This is the default behavior.
Otherwise, ...
arguments are passed to
scale_color_gradientn
or
scale_fill_gradientn
as appropriate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.