View source: R/drsimonj_palettes.R
drsimonj_cols | R Documentation |
Function to extract drsimonj colors as hex codes
red | #d11141 |
green | #00b159 |
blue | #00aedb |
orange | #f37735 |
yellow | #ffc425 |
light grey | #cccccc |
dark grey | #8c8c8c |
drsimonj_cols(...)
... |
Character names of drsimonj_colors |
library(ggplot2)
drsimonj_cols()
drsimonj_cols("red")
drsimonj_cols("red", "blue")
drsimonj_cols("blue", "red")
ggplot(data = mtcars,
aes(x = hp,
y = mpg)) +
geom_point(color = drsimonj_cols("red"),
size = 4,
alpha = 0.8) +
theme_minimal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.