GuangchuangYu / emojifont

:lollipop:Emoji and fontawesom in both base and ggplot2 graphics
https://guangchuangyu.github.io/emojifont/
67 stars 22 forks source link

Skin color in human emoji #18

Closed jvcasillas closed 5 years ago

jvcasillas commented 6 years ago

Is is possible to change the skin color of the people in the emoji? For example: 👍 and 👍🏾.

I did a quick search and can't seem to find an answer.

GuangchuangYu commented 5 years ago

you can set color manually, but there is no predefined color.


set.seed(123)
x <- rnorm(10)
set.seed(321)
y <- rnorm(10)
d <- data.frame(x=x, y=y,
                label = sample(c(emoji('+1'), emoji('-1')), 10, replace=TRUE),
                type = sample(LETTERS[1:3], 10, replace=TRUE))

library("ggplot2")
ggplot(d, aes(x, y, color=type, label=label)) +
    geom_text(family="EmojiOne", size=6)