View source: R/cvd_palette_scores.R
| print_cvd_badge | R Documentation |
Generates markdown badges for palette CVD accessibility ratings. Useful for including in README or documentation.
print_cvd_badge(palette_name)
palette_name |
Character string specifying the palette name |
Character string with markdown badge code
## Not run:
# Generate badge for StarryNight
print_cvd_badge("StarryNight")
# Generate badges for all palettes
for (p in names(vangogh_palettes)) {
cat(p, ": ")
print_cvd_badge(p)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.