scale_fill_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_fill_all(..., return_hex = FALSE)
... |
Parameters passed to scale_fill_manual() |
return_hex |
Return a vector of color hexidecimals instead of a plotting object. |
ScaleContinuous/ggproto object or vector
ggplot(mpg, aes(fl, hwy, fill=model)) + geom_bar(stat='identity') + scale_fill_all()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.