Offers Various Swiss Maps as Data Frames and 'ggplot2' Objects

Offers various swiss maps as data frames and 'ggplot2' objects and gives the possibility to add layers of data on the maps. Data are publicly available from the swiss federal statistical office.


R package

Installation

The package can be installed from CRAN:

install.packages("ggswissmaps")

or from github:

# install.packages("devtools")
devtools::install_github("gibonet/ggswissmaps")

News

  • The object maps2 is now created when the package is loaded. This has reduced the installed size of the package to about 1 MB.
  • The code of the maps2_() function has been shortened, with the introduction of theme_white_f. The result of the function is the same.
  • The number of data frames with map coordinates has been reduced from 16 to 8 (shp_df data).
  • Object theme_white has been deleted. This object used panel.margin argument, that will be deprecated in the next release of ggplot2. Instead of changing it to the new argument panel.spacing, we deleted it since in any case it was no more used and neither exported to the NAMESPACE.
  • Added single quotes around ggplot2 in DESCRIPTION and other documentation.

NEW FEATURES

  • New README.md file, with installation instructions.
  • Added rmarkdown to suggested dependencies.
  • Added an example of creation of a map of a sub-territory in the vignette.

NEW FEATURES

  • Added function maps2_()
  • The object maps2 is created dynamically with the function maps2_() and is available simply by writing it (it is no more necessary to load it with data (maps2)).
  • The size of the package source (tar.gz) has been reduced form about 1.5 MB to 0.6 MB.

NEW FEATURES

  • Works with ggplot2 >= 2.0.0.9001
  • Object maps removed (redundant, use data(maps2)).

NEW FEATURES

  • Reduced the number of elements in list maps2, from 158 to 16 (installed size consequently reduced from about 70MB to 6MB).

NEW FEATURES

  • Works with ggplot2 >= 2.0.0
  • Two new contributors.
  • Added data frames of swiss boundaries, from 2008 to 2015 (object shp_df)
  • Added swiss maps (as ggplot objects), from 2008 to 2015 (data from each year is of January, first): object maps2.
  • Added a package vignette.
  • Type help(package="ggswissmaps") to run documentation.
  • Type browseVignettes("ggswissmaps") to run package vignette.

NEW FEATURES

  • Added title in title case.
  • Very first version of the (cran) package. Type help(package="ggswissmaps") to run documentation.

NEW FEATURES

  • Very first version of the (cran) package. Type help(package="ggswissmaps") to run documentation.

NEW FEATURES

  • Very first version of the package. Type help(package="ggswissmaps") to run documentation.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ggswissmaps")

0.1.1 by Sandro Petrillo Burri, 6 months ago


https://github.com/gibonet/ggswissmaps


Browse source code at https://github.com/cran/ggswissmaps


Authors: Sandro Petrillo Burri [aut, cre], Eric Stephani [aut], Lisa Bottinelli [ctb]


Documentation:   PDF Manual  


GPL-2 license


Imports utils

Depends on ggplot2

Suggests dplyr, plyr, reshape2, testthat, data.table, knitr, rmarkdown


See at CRAN