scale_color_rub | R Documentation |
Color scale constructor for RUB colors
scale_color_rub(palette = "discrete", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in |
discrete |
Boolean indicating whether color aesthetic is discrete or not, defaults to TRUE. |
reverse |
Optional boolean indicating whether the palette should be reversed, defaults to FALSE. |
... |
Additional arguments passed to
|
ggplot2::ggplot( data = mtcars, ggplot2::aes( x = mpg, y = disp, color = as.factor(carb) ) ) + ggplot2::geom_point() + scale_color_rub( palette = "discrete" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.