Description Usage Arguments Note Examples
Given a path or URL to an .aco
file, this function will return
a named character vector (if color names are present) of hex RGB colors.
1 |
path |
partial or full file path or URL to an ACO file |
use_names |
add color names to the vector (defaults to |
.verbose |
show extra information about ACO file processing |
When using named color palettes in a ggplot2
scale_
context, you
must unname
, set use_names
to FALSE
or override their names
to map to your own factor levels.
1 2 3 4 5 6 7 8 9 10 11 12 | # built-in palette
eighties <- read_aco(system.file("palettes", "tomorrow_night_eighties.aco", package="swatches"))
print(eighties)
show_palette(eighties)
# from the internet directly
## Not run:
tomorrow_night <- read_aco("https://bit.ly/tomorrow-night-aco")
print(tomorrow_night)
show_palette(tomorrow_night)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.