wom_cols | R Documentation |
Function to extract wom colors as hex codes
blue | #007bff |
indigo | #6610f2 |
purple | #6f42c1 |
pink | #e83e8c |
red | #dc3545 |
orange | #fd7e14 |
yellow | #ffc107 |
green | #28a745 |
teal | #20c997 |
cyan | #17a2b8 |
white | #ffffff |
gray | #6c757d |
graydark | #343a40 |
primary | #007bff |
secondary | #6c757d |
success | #28a745 |
info | #17a2b8 |
warning | #ffc107 |
danger | #dc3545 |
light | #f8f9fa |
dark | #343a40 |
wom_cols(...)
... |
Character names of wom_cols |
library(ggplot2)
wom_cols()
wom_cols("red")
wom_cols("red", "blue")
wom_cols("blue", "red")
ggplot(data = mtcars,
aes(x = hp,
y = mpg)) +
geom_point(color = wom_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.