Skip to content
/ mapsf Public

❗ This is a read-only mirror of the CRAN R package repository. mapsf — Thematic Cartography. Homepage: https://riatelab.github.io/mapsf/ Report bugs for this package: https://github.com/riatelab/mapsf/issues/

Notifications You must be signed in to change notification settings

cran/mapsf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mapsf

CRAN R-CMD-check downloads Codecov test coverage status

Create thematic maps and integrate them into your R workflow.

This package helps you design different cartographic representations such as proportional symbols, choropleths, or typology maps. It also provides several functions for displaying layout elements that enhance the graphical presentation of maps (e.g., scale bar, north arrow, title, labels). mapsf maps sf objects on base graphics.

Installation

You can install the released version of mapsf from CRAN with:

install.packages("mapsf")

Alternatively, you can install the development version of mapsf (the dev branch) from r-universe with:

install.packages("mapsf", repos = "https://riatelab.r-universe.dev")

Usage

This is a basic example which shows how to create a map with mapsf.

library(mapsf)
# Import the sample dataset
mtq <- mf_get_mtq()
# Plot the base map
mf_map(x = mtq)
# Plot proportional symbols
mf_map(x = mtq, var = "POP", type = "prop", leg_pos = "topright")
# Plot a map layout
mf_layout(
  title = "Population in Martinique",
  credits = "T. Giraud; Sources: INSEE & IGN, 2018"
)

You can find more detailed examples on the “Get Started” section of the package website and you can also download its cheat sheet.
Cheat Sheet

Alternatives

Community Guidelines

One can contribute to the package through pull requests and report issues or ask questions here. See the CONTRIBUTING.md file for detailed instructions on how to contribute.
This project uses conventional commits and semantic versioning.

About

❗ This is a read-only mirror of the CRAN R package repository. mapsf — Thematic Cartography. Homepage: https://riatelab.github.io/mapsf/ Report bugs for this package: https://github.com/riatelab/mapsf/issues/

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages