View source: R/scale_color_marjan.R
| scale_color_marjan | R Documentation | 
This function provides a color scale for the color aesthetic using the Marjan color palette. The Marjan palette is a customized color palette that provides a range of distinct and attractive colors.
scale_color_marjan(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette | 
 A string representing the color palette to use. Available palettes are   | 
discrete | 
 Logical. If   | 
reverse | 
 Logical. If   | 
... | 
 Additional arguments passed on to the underlying scale function ('discrete_scale' or 'scale_color_gradientn').  | 
A ggplot2 scale that can be added to a ggplot object.
scale_color_discrete, scale_color_gradientn
## Not run: 
library(ggplot2)
ggplot(mtcars, aes(x = mpg, y = disp, size = hp, color = carb)) +
geom_point() +
scale_color_marjan(palette = "divergentPolar", discrete = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.