Skip to content

Instantly share code, notes, and snippets.

@revodavid
Forked from dill/mtcars-cat.R
Created November 30, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revodavid/fffd8274b5679920b018 to your computer and use it in GitHub Desktop.
Save revodavid/fffd8274b5679920b018 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()
@orioli
Copy link

orioli commented Sep 19, 2017

not working on my mac :( it says "Not found"

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