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.
fmap can be installed from Github.
library(devtools)
install_github("lbuk/fmap")
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")