{"id":13400985,"url":"https://github.com/jimjam-slam/ggflags","last_synced_at":"2025-03-14T06:32:06.714Z","repository":{"id":43068118,"uuid":"101999851","full_name":"jimjam-slam/ggflags","owner":"jimjam-slam","description":"A flag geom for ggplot2. Tweaks the original by using round flags (great for plotting as points).","archived":false,"fork":true,"pushed_at":"2024-06-03T11:23:55.000Z","size":43479,"stargazers_count":91,"open_issues_count":15,"forks_count":14,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-06-22T05:03:33.592Z","etag":null,"topics":["dataviz","flags","ggplot2","ggplot2-enhancements","r","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ellisp/ggflags","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimjam-slam.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-31T12:46:33.000Z","updated_at":"2024-06-22T05:03:33.592Z","dependencies_parsed_at":"2023-10-12T14:48:54.670Z","dependency_job_id":"b8781679-a201-4549-95ea-82bbf3721250","html_url":"https://github.com/jimjam-slam/ggflags","commit_stats":null,"previous_names":["rensa/ggflags"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimjam-slam%2Fggflags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimjam-slam%2Fggflags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimjam-slam%2Fggflags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimjam-slam%2Fggflags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimjam-slam","download_url":"https://codeload.github.com/jimjam-slam/ggflags/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538018,"owners_count":20307099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dataviz","flags","ggplot2","ggplot2-enhancements","r","rstats"],"created_at":"2024-07-30T19:00:57.631Z","updated_at":"2025-03-14T06:32:06.706Z","avatar_url":"https://github.com/jimjam-slam.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n## ggflags: Plot flags of the world in ggplot2\n\nA flag geom for ggplot2. Uses circular SVG flags.\n\n# Install\n\nInstall from R-Universe:\n\n```r\ninstall.packages(\"ggflags\", repos = c(\n  \"https://jimjam-slam.r-universe.dev\",\n  \"https://cloud.r-project.org\"))\n```\n\n# Use\n\n```{r demo, warning=FALSE}\nlibrary(ggplot2)\nlibrary(ggflags)\n\nset.seed(1234)\nd \u003c- data.frame(\n  x = rnorm(50), y = rnorm(50),\n  country = sample(c(\"ar\", \"fr\", \"nz\", \"gb\", \"es\", \"ca\", \"lv\", \"qa\"), 50, TRUE),\n  stringsAsFactors = FALSE\n)\n\nggplot(d, aes(x = x, y = y, country = country, size = x)) +\n  geom_flag() +\n  scale_country() +\n  scale_size(range = c(0, 15))\n```\n\nThe flag SVG assets, used under the [CC-BY licence](https://github.com/eosrei/emojione-color-font/blob/master/LICENSE-CC-BY.txt), are taken from the EmojiOne set: https://github.com/eosrei/emojione-color-font\n\n(Note: the EmojiOne set doesn't include UK counties or US states!)\n\n![](man/figures/flags.png)\n\n(note: proof of principle only)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimjam-slam%2Fggflags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimjam-slam%2Fggflags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimjam-slam%2Fggflags/lists"}