knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package is based on Cianna Bedford-Petersen's package inauguration
joker
is a toy R package to provide a color palette based on the Joker character played by:
library(joker) joker("phoneix")
library(joker) joker("ledger")
You can install the development version of joker from GitHub with:
# install.packages("devtools") devtools::install_github("ahmedmoustafa/joker")
phoneix
colorslibrary(joker) library(ggplot2) x = c("A", "B", "C", "D", "E") y = c(50, 40, 30, 20, 10) ggplot() + geom_bar(aes(x = x, y = y, fill = x), stat = "identity") + scale_fill_manual(values = joker("phoneix")) + ggtitle("Barplot with the Joker phoneix colors")
ledger
colorslibrary(joker) library(ggplot2) x = c("A", "B", "C", "D", "E") y = c(50, 40, 30, 20, 10) ggplot() + geom_bar(aes(x = x, y = y, fill = x), stat = "identity") + scale_fill_manual(values = joker("ledger")) + ggtitle("Barplot with the Joker ledger colors")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.