Description Usage Arguments Details Author(s) See Also Examples
View source: R/scale_color_discrete.R
These functions override the standard ggplot versions to apply the Brattle palette to ggplot figures.
1 2 3 |
... |
Arguments passed to corresponding |
Note that the Brattle palette is only applied if there are five or fewer groups. If there are more than five groups, colors from the viridis
package are applied.
Charlie Gibbons
scale_colour_discrete
, scale_fill_discrete
from the ggplot2
package
1 2 3 4 | qplot(carat, price, data = diamonds, color = cut) + scale_color_discrete("Cut")
### Revert to the ggplot version
qplot(carat, price, data = diamonds, color = cut) + ggplot2::scale_color_discrete("Cut")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.