geombeer
is a package that creates cool images of refreshing alcoholic
beverages and yummy bar food. This was mainly built for my R
Shiny app but I think
anyone can enjoy this package. The ggplot2
package is used under the
the hood to create these images.
geom_beer()
creates a can of ice cold beergeom_redwine()
creates a bottle of red winegeom_whitewine()
creates a bottle of white winegeom_gin()
creates a bottle of gin (aesthetics inspired by Bombay
sapphire)geom_hotdog()
creates a yummy hot dogYou can install from GitHub with:
devtools::install_github("andr3wli/geombeer")
geom_beer()
This is how you create a cold one in r
library(ggplot2)
library(geombeer)
ggplot() +
geom_beer() +
theme_void()
geom_gin()
ggplot() +
geom_gin() +
theme_void()
geom_hotdog()
ggplot() +
geom_hotdog() +
theme_void()
A huge thank you to Georgios Karamanis! He is the one who created the original hot dog and I modified his code to give it some friends. Georgios is super nice and I am grateful for his help and code.
Please note that the geombeer project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.