knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of fifty is to justify a very bad twitter joke. Installation:
remotes::install_github("djnavarro/fifty")
The fifty::shades() function takes a single colour name as input and returns a palette generating function that progressively adds transparency:
library(fifty) # two palettes against the default white background palette_show(fifty::shades("grey")) palette_show(fifty::shades("red")) # the same palettes against a dark background par(bg = "black") palette_show(fifty::shades("grey")) palette_show(fifty::shades("red"))
To be perfectly honest I cannot think of good use case for this.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.