GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mapsf/README.Rmd at master · riatelab/mapsf

Expand file tree

/

README.Rmd

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
94 lines (65 loc) · 3.72 KB
/

README.Rmd

Copy path

File metadata and controls

94 lines (65 loc) · 3.72 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/",
fig.width = 5, fig.height = 6,
dev = "png", dpi = 110
# out.width = "100%"
)
```
```{r, include=FALSE}
library(covr)
coverage <- round(percent_coverage(package_coverage()),0)
```
# mapsf <img src="man/figures/logo.png" align="right" width="120"/>
[![CRAN](https://www.r-pkg.org/badges/version-ago/mapsf)](https://cran.r-project.org/package=mapsf)
[![mapsf status badge](https://riatelab.r-universe.dev/mapsf/badges/version)](https://riatelab.r-universe.dev/mapsf)
![code coverage: `r coverage`%](https://img.shields.io/badge/code_coverage-`r coverage`%25-green)
[![status](https://tinyverse.netlify.app/badge/mapsf)](https://CRAN.R-project.org/package=mapsf)
[![downloads](https://cranlogs.r-pkg.org/badges/mapsf?color=brightgreen)](https://cran.r-project.org/package=mapsf)
**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](https://cran.r-project.org/package=mapsf) with:
``` r
install.packages("mapsf")
```
Alternatively, you can install the development version of `mapsf` (the **dev** branch) from [r-universe](https://riatelab.r-universe.dev/mapsf) with:
``` r
install.packages("mapsf", repos = c("https://riatelab.r-universe.dev", "https://cloud.r-project.org"))
```
## Usage
This is a basic example which shows how to create a map with `mapsf`.
```{r example1, fig.width = 4, fig.height = 5, fig.alt="A simple map created 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", add = TRUE)
# 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"](https://riatelab.github.io/mapsf/articles/mapsf) section of the [package website](https://riatelab.github.io/mapsf/) and you can also download its [cheat sheet](https://raw.githubusercontent.com/riatelab/mapsf/master/vignettes/fig/mapsf_cheatsheet.pdf).
[![Cheat Sheet](man/figures/mapsf_cheatsheet.png)](https://raw.githubusercontent.com/riatelab/mapsf/master/vignettes/fig/mapsf_cheatsheet.pdf)
## mapsf.gui <img src="man/figures/mapsf_gui_logo.png" alt="mapsf.gui logo" align="right" width="60"/>
The [`mapsf.gui` package](https://codeberg.org/riatelab/mapsf.gui) provides a Shiny interface for creating thematic maps using `mapsf`.
Users of the application can **build thematic maps interactively and automatically generate the corresponding R code** to reproduce the map identically.
## Alternatives
- [`tmap`](https://github.com/r-tmap/tmap)
- [`ggplot2`](https://github.com/tidyverse/ggplot2) + [`ggspatial`](https://github.com/paleolimbot/ggspatial)
## Community Guidelines
One can contribute to the package through [pull requests](https://github.com/riatelab/mapsf/pulls) and report issues or ask questions [here](https://github.com/riatelab/mapsf/issues). See the [CONTRIBUTING.md](https://github.com/riatelab/mapsf/blob/master/CONTRIBUTING.md) file for detailed instructions on how to contribute.
This project uses [conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.3/) and [semantic versioning](https://semver.org/).
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.