Skip to content

Instantly share code, notes, and snippets.

@dill
Created November 27, 2015 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dill/ef79cdd21bf3a1977641 to your computer and use it in GitHub Desktop.
Save dill/ef79cdd21bf3a1977641 to your computer and use it in GitHub Desktop.
categorical emojis -- like this Mark?
library(emoGG)
library(ggplot2)
# set the am variable to be different emoji
mtcars$am[mtcars$am==1] <- "1f697"
mtcars$am[mtcars$am==0] <- "1f68c"
# use am as the emoji aesthetic
ggplot(mtcars, aes(wt, mpg, emoji=am))+ geom_emoji()
@dill
Copy link
Author

dill commented Nov 27, 2015

screen shot 2015-11-27 at 10 10 16

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