{"id":13858048,"url":"https://github.com/zumbov2/RSwissMaps","last_synced_at":"2025-07-13T23:31:15.759Z","repository":{"id":56936850,"uuid":"105824730","full_name":"zumbov2/RSwissMaps","owner":"zumbov2","description":"Plot and Save Customised Thematic Swiss Maps with R","archived":false,"fork":false,"pushed_at":"2019-12-09T08:13:07.000Z","size":22507,"stargazers_count":24,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T12:22:46.246Z","etag":null,"topics":["canton","cran-r","districts","ggplot2","map","maps","municipalities","rstats","switzerland","visualisation","visualization"],"latest_commit_sha":null,"homepage":"https://cran.r-project.org/web/packages/RSwissMaps/index.html","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zumbov2.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2017-10-04T22:19:50.000Z","updated_at":"2025-02-10T21:21:15.000Z","dependencies_parsed_at":"2022-08-21T05:50:56.047Z","dependency_job_id":null,"html_url":"https://github.com/zumbov2/RSwissMaps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zumbov2/RSwissMaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2FRSwissMaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2FRSwissMaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2FRSwissMaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2FRSwissMaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zumbov2","download_url":"https://codeload.github.com/zumbov2/RSwissMaps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2FRSwissMaps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265220278,"owners_count":23729785,"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":["canton","cran-r","districts","ggplot2","map","maps","municipalities","rstats","switzerland","visualisation","visualization"],"created_at":"2024-08-05T03:01:55.045Z","updated_at":"2025-07-13T23:31:10.748Z","avatar_url":"https://github.com/zumbov2.png","language":"R","funding_links":[],"categories":["R","Geodaten \u0026 Karten"],"sub_categories":["Bibliotheken \u0026 Plugins"],"readme":"![Lifecycle](https://img.shields.io/badge/lifecycle-dormant-blue.svg)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/RSwissMaps)](https://cran.r-project.org/package=RSwissMaps)\n[![Build Status](https://travis-ci.org/zumbov2/RSwissMaps.svg?branch=master)](https://travis-ci.org/zumbov2/RSwissMaps)\n[![Licence](https://img.shields.io/badge/licence-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)\n[![cranlogs](https://cranlogs.r-pkg.org/badges/grand-total/RSwissMaps)](http://cran.rstudio.com/web/packages/RSwissMaps/index.html)\n\n# RSwissMaps\n\nRSwissMaps allows to link thematic data to Swiss administrative divisions (municipalities, districts, cantons) and to plot it on a map. The maps can be customised (to some degree) and saved in different resolutions and formats. The package also allows to generate tailored templates for data collection. The geodata used is publicly available on the [Swiss Federal Statistical Office website](https://www.bfs.admin.ch/bfs/de/home/dienstleistungen/geostat/geodaten-bundesstatistik/administrative-grenzen/generalisierte-gemeindegrenzen.html). \n\n## Data availability\nGeodata of Swiss municipalities, districts, and cantons is currently available for the following reference dates: 2001-1-1, 2002-1-1, 2003-1-1, 2004-1-1, 2005-1-1, 2006-1-1, 2007-1-1, 2008-1-1, 2009-1-1, 2010-1-1, 2010-31-12, 2011-1-1, 2011-31-12, 2012-1-1, 2012-31-12, 2013-1-1, 2013-31-12, 2014-1-1, 2014-31-12, 2015-1-1, 2015-31-12, 2016-1-1, 2016-31-12, 2017-1-1.\n\n## Coordinate reference system\nCH1903/LV03 (EPSG:21781). For more information, please see: [swisstopo](https://www.swisstopo.admin.ch/en/knowledge-facts/surveying-geodesy/reference-systems/switzerland.html) and [Spatial Reference](http://spatialreference.org/ref/epsg/21781/) \n\n## Commercial use\nFor commercial use of the data, please see: [GEOSTAT, BFS](https://www.bfs.admin.ch/bfs/de/home/dienstleistungen/geostat/nutzungsbedingungen.html)\n\n# Installation\nVersion 0.1.0 is on CRAN, and you can install it by:\n```r\ninstall.packages(\"RSwissMaps\")\n```\nFor regularly updated version (latest: 0.1.4) with all geodata pre-installed, install from GitHub:\n```r\ninstall.packages(\"devtools\")\ndevtools::install_github(\"zumbov2/RSwissMaps\", subdir = \"allinone\")\n```\n\n# Examples\n## Example 1 (with code)\n![municipalities](https://github.com/zumbov2/RSwissMaps/blob/master/plots/mun_plot.png)\n```r\ngemeinden \u003c- mun.template(2017)\n\nfor(i in 1:nrow(gemeinden)){\n  gemeinden$values[i] \u003c- sample(c(300:700), 1)/1000\n}\n\nmun.plot(gemeinden$bfs_nr, gemeinden$values, 2017,\n         color_continuous = c(\"#c7e9c0\", \"#006d2c\"),\n         boundaries_size = 0.2,\n         title = \"Random data\",\n         subtitle = \"Schweizer Gemeiden, 2017\",\n         caption = \"Plotted with RSwissMaps\",\n         save = T,\n         dpi = 1000)\n```\n\n## Example 2 (with code)\n![municipalities2](https://github.com/zumbov2/RSwissMaps/blob/master/plots/mun_plot2.png)\n```r\ngemeinden \u003c- mun.template(2017, cantons = c(\"AG\", \"ZH\"))\n\nfor(i in 1:nrow(gemeinden)){\n  \n  gemeinden$values[i] \u003c- sample(c(300:700), 1)/1000\n  \n}\n\nmun.plot(gemeinden$bfs_nr, gemeinden$values, 2017,\n         cantons = c(\"AG\", \"ZH\"),\n         lakes = c(\"Hallwilersee\", \"Zürichsee\", \"Greifensee\"),\n         boundaries = c(\"m\", \"c\"), boundaries_color =  c(\"white\", \"white\"),\n         boundaries_size = c(0.2, 1),\n         title = \"Random data\",\n         subtitle = \"Aargauer und Zürcher Gemeiden, 2017\",\n         caption = \"Plotted with RSwissMaps\",\n         save = T,\n         filename = \"mun_plot2.png\",\n         dpi = 1000)\n```\n\n## Example 3 (real data)\n![districts](https://github.com/zumbov2/RSwissMaps/blob/master/plots/dis_plot.png)\n\n## Example 4 (real data)\n![cantons](https://github.com/zumbov2/RSwissMaps/blob/master/plots/can_plot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzumbov2%2FRSwissMaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzumbov2%2FRSwissMaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzumbov2%2FRSwissMaps/lists"}