scale_color_all | R Documentation |
The default coloring scheme for ggplot2 makes it hard to distinguish among data points in complex bar charts (eg., taxa plots). This function is a wrapper around scale_color_continuous() which changes the color scheme used.
scale_color_all(..., return_hex = FALSE)
... |
Parameters passed to scale_colorl_manual() |
return_hex |
Return a vector of color hexidecimals instead of a plotting object. |
ScaleContinuous/ggproto object or vector
ggplot(mpg, aes(cty, hwy, color=class)) + geom_point() + scale_color_all()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.