luigg
is to provide some silly, Mario-themed ggplot
extensions.
Installation
You can install the development version of luigg from GitHub with:
# install.packages("devtools")
devtools::install_github("christopherkenny/luigg")
Example
This is a basic example which shows you how to solve a common problem:
Imagine you need a warp pipe bar graph. Look no further.
set.seed(1)
data.frame(x = as.character(1:4), n = 100 * runif(n = 4, 0, .5)) |>
ggplot2::ggplot(ggplot2::aes(x = x, y = n, fill = x)) +
geom_pipe() +
scale_fill_luigg(palette = 'warp_pipe') +
ggplot2::theme_void()