-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having trouble rendering colour emoji in ggplot2 #9
Comments
I've also tried rendering to SVG using |
can you provide a simple example to reproduce the issue? |
Well, here's the code I'm using after my data's been tidied. You can reproduce it with:
|
Instead of |
If I use |
Fair enough. But these are the emoji for the individual region symbols, not the ligature flag emoji. Is it possible that I need to format the unicode control sequences differently to get the flags?
|
I got your idea now. Maybe the author of |
I'm trying to use the emoji associated with countries in a ggplot2 visualisation. However, the emoji are rendering as the individual country code Unicode sequence components:
However, the Unicode code points I'm providing appear to be right as far as I can tell:
I've also tried using
gganimate
to make a video version with the full dataset, as well as aggplotly
version. Withgganimate
rendering to a GIF or an MP4, I get the same result as with a staticggplot
.With
plotly
, the flags render correctly as emoji, but they use my system emoji font, not EmojiOne. I understand that this is probably a browser limitation and am looking at whether I can inject some Javascript to do the substitution :/ But it would be nice to get to the bottom of why it isn't working with a static or animated plot!(Note: I'm running R 3.3.3 on macOS 10.12.6)
The text was updated successfully, but these errors were encountered: