A package for plotting country flags as bubbles or balloons in ggplot.
Note: this package isn’t precisely dead, but development is on pause until I work through some changes and developments in R’s SVG stack.
I’ve taken over development of ggflags, an extension to ggplot2 that allows you to plot country flags as points or bubbles. The original was developed by Baptiste’s Auguié, and I’ve so far extended it to use round, vector flags from the EmojiOne v2 set (so they’ll look great at any size).
We’re currently working on SVG export for interactive graphics. It works with
ggsave if you have the
svglite package installed, although you lose the structure of the plot, which isn’t great for interactive applications.
gridSVG::grid.export also works, although you’ll have to do some manual tweaking of the output to correct for a bug with the viewport.