Skip to content

ellisp/ggflags

Repository files navigation

ggflags

flag geom for ggplot2

library(ggflags)
## Loading required package: ggplot2
set.seed(1234)
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()

The flags are taken from wikipedia via https://github.com/behdad/region-flags

(note: proof of principle only)

About

flag geom for ggplot2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages