View source: R/polyomics_scale_colour.R
polyomics_scale_colour | R Documentation |
Color scale constructor for polyomics colors
polyomics_scale_colour(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in polyomics_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean to reverse the order of the colour palette |
... |
Params set to NULL |
library(ggplot2) plot <- ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) + geom_point(size = 4) + polyomics_scale_color(palette = "mixed")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.