Mix countries' flags with a OCDE logo from a svg file


I want to make a plot where I use in the plot (with ggplot2) countries' flags (probably from the ggflags) and the OECD logo. Is there a way of mix both?


In order for us to help you with your question, please provide us with a bit more information on what your goal is and what you've already tried. It would be helpful if you could create a Reprex (see this guide):

Good luck!

Take this example:


d <- data.frame(x=rnorm(50), y=rnorm(50), 
                country=sample(c("ar","fr", "nz", "gb", "es", "ca"), 50, TRUE), 
                stringsAsFactors = FALSE)
ggplot(d, aes(x=x, y=y, country=country, size=x)) + 
  geom_flag() + 
  scale_country() +
  scale_size(range = c(0, 15))

I want to add a flag representing the mean of the OECD contries (i.e. this flag) mantaining the same image format.

Best regards.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.