jimjam-slam / ggflags

A flag geom for ggplot2. Tweaks the original by using round flags (great for plotting as points).
91 stars 14 forks source link

International/Multinational flag #33

Open seanharrigan opened 3 months ago

seanharrigan commented 3 months ago

We love this package and have used it a lot in health research to indicate where a given study was from. One thing we have run into a lot is that many of our studies are multinational and therefore we cant assign any one flag to it. It would be great to be able to provide one more emoticon for this (e.g. a globe), similar as to what you have added for the European Union flag. We have tried using ggimage and other methods but it doesnt quite work as seamlessly.

Alternitvely, if you know of a way I good get around this that would also be greatly appreciated!

jimjam-slam commented 3 months ago

Hi @seanharrigan, thanks for the lovely feedback! I'm hoping to switch over to a new flag dataset that I think includes a UN flag (see #31), but I'm a little stuck with them rendering as squares. If I can solve that, there'll be a new version that includes these new flags!

jimjam-slam commented 3 months ago

In the mean time, you could use {rsvg} (the package I plan to use) directly to insert it!

seanharrigan commented 2 months ago

Thank you so much for your comment. I was able to implement this and it worked quite well. The UN flag would work well, but it may also be great to also have the option for a globe emoticon as well - to avoid any political connotations.

Again, really appreciate your help :) globe-showing-europe-africa

jimjam-slam commented 2 months ago

I'm glad to hear it! I'm a bit blocked on the new version of ggflags, but I'm thrilled that you were same to make this solution work 😊