All Projects โ†’ R-CoderDotCom โ†’ Ggbernie

R-CoderDotCom / Ggbernie

Licence: other
A ggplot2 geom for adding Bernie Sanders to ggplot2

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Ggbernie

Gganimate
A Grammar of Animated Graphics
Stars: โœญ 1,744 (+1716.67%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Hrbrthemes
๐Ÿ” Opinionated, typographic-centric ggplot2 themes and theme components
Stars: โœญ 899 (+836.46%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggalt
๐ŸŒŽ Extra Coordinate Systems, Geoms, Statistical Transformations & Scales for 'ggplot2'
Stars: โœญ 561 (+484.38%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggpointdensity
๐Ÿ“ˆ ๐Ÿ“Š Introduces geom_pointdensity(): A Cross Between a Scatter Plot and a 2D Density Plot.
Stars: โœญ 286 (+197.92%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggcats
The geom you always wished for adding cats to ggplot2
Stars: โœญ 34 (-64.58%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Patchwork
The Composer of ggplots
Stars: โœญ 2,002 (+1985.42%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggforce
Accelerating ggplot2
Stars: โœญ 640 (+566.67%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Econocharts
Microeconomics/macroeconomics charts in ggplot2
Stars: โœญ 161 (+67.71%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Calendr
Ready to print calendars with ggplot2
Stars: โœญ 161 (+67.71%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Ggsignif
Easily add significance brackets to your ggplots
Stars: โœญ 322 (+235.42%)
Mutual labels:  ggplot2, ggplot-extension, rstats
Waffle
๐Ÿ Make waffle (square pie) charts in R
Stars: โœญ 614 (+539.58%)
Mutual labels:  ggplot2, rstats
Tidyexplain
๐Ÿคนโ€โ™€ Animations of tidyverse verbs using R, the tidyverse, and gganimate
Stars: โœญ 558 (+481.25%)
Mutual labels:  ggplot2, rstats
Ggthemr
Themes for ggplot2.
Stars: โœญ 697 (+626.04%)
Mutual labels:  ggplot2, rstats
Ggraph
Grammar of Graph Graphics
Stars: โœญ 815 (+748.96%)
Mutual labels:  ggplot2, ggplot-extension
Upsetr
An R implementation of the UpSet set visualization technique published by Lex, Gehlenborg, et al..
Stars: โœญ 531 (+453.13%)
Mutual labels:  ggplot2, rstats
Tidymv
Tidy Model Visualisation for Generalised Additive Models
Stars: โœญ 25 (-73.96%)
Mutual labels:  ggplot2, rstats
Moderndive book
Statistical Inference via Data Science: A ModernDive into R and the Tidyverse
Stars: โœญ 527 (+448.96%)
Mutual labels:  ggplot2, rstats
Ggdistribute
ggplot2 extension for plotting distributions
Stars: โœญ 16 (-83.33%)
Mutual labels:  ggplot2, ggplot-extension
Geowaffle
Combining waffle plot with geofacet
Stars: โœญ 26 (-72.92%)
Mutual labels:  ggplot2, rstats
Ggplot Courses
๐Ÿ‘จโ€๐Ÿซ ggplot2 Teaching Material
Stars: โœญ 40 (-58.33%)
Mutual labels:  ggplot2, rstats

ggbernie

A ggplot2 geom for adding Bernie Sanders. This is a core package of the memeverse. Check also ggcats.

This is a package inspired by a tweet by @samuelmehr

Installation

# install.packages("remotes")
remotes::install_github("R-CoderDotCom/[email protected]")

Bernie sitting

ggplot(mtcars) +
  geom_bernie(aes(mpg, wt), bernie = "sitting")

Bernie stand

ggplot(mtcars) +
  geom_bernie(aes(mpg, wt), bernie = "stand")

Bernie head

ggplot(mtcars) +
  geom_bernie(aes(mpg, wt), bernie = "head")

Bernie young

ggplot(mtcars) +
  geom_bernie(aes(mpg, wt), bernie = "young")

Bernie arms

ggplot(mtcars) +
  geom_bernie(aes(mpg, wt), bernie = "arms")

Bernie eyebrows

ggplot(mtcars) +
  geom_bernie(aes(mpg, wt), bernie = "eyebrows")

Bernie asking

ggplot(mtcars) +
  geom_bernie(aes(mpg, wt), bernie = "asking")

Bernie plane

library(ggplot2)

plane <- "https://user-images.githubusercontent.com/67192157/105575266-b173b980-5d6a-11eb-90e3-a7ddea0fe52b.png"

data <- data.frame(x = c(-0.1, 0, 0.05, 0.1, 0.15, 0.2,
                         0.3, 0.35, 0.4, 0.43, 0.52, 0.56, 0.6, 0.65,
                         0.3, 0.35, 0.38, 0.42, 0.5, 0.46, 0.44, 0.5, 0.51, 0.45, 0.6, 0.56, 0.63,
                         0.8, 0.85, 0.9, 0.75, 0.95),
                   y = c(0.61, 0.6, 0.65, 0.62, 0.67, 0.61,
                         0, 0.05, 0.02, 0.01, 0.033, 0.021, 0, 0.018,
                         0.65, 0.55, 0.6, 0.53, 0.42, 0.48, 0.43, 0.54, 0.6, 0.58, 0.55, 0.57, 0.65,
                         0.62, 0.64, 0.625, 0.67, 0.665))

p <- ggplot(data, aes(x, y)) +
    geom_bernie(bernie = "sitting") +
    xlim(c(0, 1)) +
    ylim(c(0, 1)) + 
    theme(panel.grid = element_line(color = "transparent"),
          axis.title = element_text(color = "transparent"),
          axis.text = element_text(color = "transparent"),
          axis.ticks = element_blank())
   
library(ggimage)
ggbackground(p, plane)

The draw_key_bernie function was inspired by draw_key_lime from geom_lime.

Featured memes made by the community

Not the plot I wanted, but the plot I **needed**. We have a new activity in the office, called plotcrastinating. #aRt #geom_bernie #ggbernie #ggplot2 #Rladies pic.twitter.com/4j6jWo1nEW

โ€” Chloe Fouilloux (@ChloeFouilloux) January 25, 2021

We had to know this was coming @RCoderWeb https://t.co/6H5bQ0yIYa pic.twitter.com/yvT3Lfg5qH

โ€” Jonathan Hersh (@DogmaticPrior) January 25, 2021

pic.twitter.com/ps3x4u5lDZ

โ€” Julius Lehtinen (@Julleht) January 25, 2021

pic.twitter.com/spQNAvQii4

โ€” Travis Gerke (@travisgerke) January 25, 2021

Bernie shows us health inequalities among Chicago Community Areas #rstats pic.twitter.com/IhswP476DG

โ€” hughbartling (@hughbartling) January 24, 2021

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].