Skip to content

Instantly share code, notes, and snippets.

@jenitivecase
Created December 6, 2018 16:52
Show Gist options
  • Save jenitivecase/66ea1033fdcf71c2e8ad6d00fd32e54f to your computer and use it in GitHub Desktop.
Save jenitivecase/66ea1033fdcf71c2e8ad6d00fd32e54f to your computer and use it in GitHub Desktop.
Creating a birthday graph in ggplot2
devtools::install_github("dill/emoGG")
library(emoGG)
emoji_search("birthday")
bday_plot <- data.frame(x = c(10, 15, 23, 27, 43, 56, 62, 76, 84, 92, 95),
y = c(12, 71, 17, 84, 33, 70, 26, 82, 16, 26, 90))
ggplot() +
geom_text(aes(x = 50, y = 50),label = "Happy Birthday!",
size = 10, color = "darkblue") +
coord_cartesian(xlim = c(0, 100), ylim = c(0, 100)) +
geom_emoji(data = bday_plot, aes(x = x, y = y), emoji="1f382", size = .1)
@tatiannadugue
Copy link

Hi Jen!

This is awesome! Is it possible for me to adapt this code to make a tutorial on how to use ggplot for some students I work with?

@jenitivecase
Copy link
Author

jenitivecase commented Aug 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment