Skip to content
/ fmap Public

An R package for creating Fresnel Maps, a new thematic mapping technique in which spatial data is visualised to equal-area concentric circular zones (or annuli).

License

Notifications You must be signed in to change notification settings

lbuk/fmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a2e64a8 · Nov 23, 2024
Nov 23, 2024
Apr 5, 2023
Apr 23, 2024
Nov 23, 2024
Apr 3, 2023
Apr 3, 2023
Nov 23, 2024
Jan 21, 2023
Nov 23, 2024
Nov 23, 2024
Jan 21, 2023

Repository files navigation

fmap

Overview

fmap is an R package for creating Fresnel Maps, a new thematic mapping technique in which spatial data is visualised to concentric circular zones (or annuli) of equal area.

Installation

fmap can be installed from Github.

library(devtools)
install_github("lbuk/fmap")

Use

library(fmap)
library(dplyr)
library(sf)

# Load the sf datasets of cholera deaths and Soho pumps
data(cholera_deaths, soho_pumps)

# Filter the Broad Street Pump from the Soho pumps dataset
bstreet_pump <- soho_pumps %>% filter(soho.pump == "Broad Street")

# Set to static mapping in tmap. For interactive mapping use tmap_mode("view")
tmap_mode("plot")

# Visualise the Fresnel Map
fmap_plot(radius_inner = 150, ncircles = 6, geo_centre = bstreet_pump, geo_points = cholera_deaths, sum = "cholera.deaths")

About

An R package for creating Fresnel Maps, a new thematic mapping technique in which spatial data is visualised to equal-area concentric circular zones (or annuli).

Topics

Resources

License

Citation

Stars

Watchers

Forks

Languages