olink_color_discrete {OlinkAnalyze} | R Documentation |
Olink color scale for discrete ggplots
Description
Olink color scale for discrete ggplots
Usage
olink_color_discrete(..., alpha = 1, coloroption = NULL)
Arguments
... |
Optional. Additional arguments to pass to ggplot2::discrete_scale() |
alpha |
transparency |
coloroption |
string, one or more of the following: c('red', 'orange', 'yellow', 'green', 'teal', 'turqoise', 'lightblue', 'darkblue', 'purple', 'pink') |
Value
No return value, called for side effects
Examples
library(ggplot2)
ggplot(mtcars, aes(x=wt, y=mpg, color=as.factor(cyl))) +
geom_point(size = 4) +
olink_color_discrete() +
theme_bw()
ggplot(mtcars, aes(x=wt, y=mpg, color=as.factor(cyl))) +
geom_point(size = 4) +
olink_color_discrete(coloroption = c('lightblue', 'red', 'green')) +
theme_bw()
[Package OlinkAnalyze version 3.8.2 Index]