To use emojis in your ggplot2 visualizations, load both ggplot2 and emoGG. You can find specific emojis using the emoji_search() function, which returns the emoji character, its unicode code, and associated keywords. Once you have the code, use geom_emoji() within a ggplot call to render the emoji.
library(ggplot2)
library(emoGG)
# 1. Search for an emoji code
emoji_search("tulip")
# 2. Use the code (e.g., "1f337") in a plot
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
geom_emoji(emoji="1f337")