map_distribution: Draw distribution map from data frame

Description Usage Arguments Value Examples

View source: R/maps.R

Description

Draw distribution map from data frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
map_distribution(
  df,
  z_limits = c(0, 100),
  z_breaks = c(10, 25, 50, 75, 100),
  z_min = 1,
  color_not_present = "blue",
  size_not_present = 1,
  size_present = 8,
  base_size = 14,
  map_title = "",
  map_tag = "",
  legend_position = c(0.15, 0.25),
  legend_title = "%"
)

Arguments

df

Dataframe having at least 3 columns z for the quantity to be mapped, longitude, latitude

z_limits

Limits for the legend

z_breaks

Breaks for the legend

z_min

Lower limit below which the location is represented by a cross

color_not_present

Color used to display points where the z is below z_min

size_not_present

Size used to display points where the z is below z_min

size_present

Maximum size used to display points where the z is above z_min

base_size

Font size for the theme (can increase to make axes legends and titles bigger)

map_title

Title of the map

map_tag

Tag ("A", "B") to be displayed at top right

legend_position

Position of the legend

legend_title

Title of the legend

Value

A map as a ggplot object

Examples

1

vaulot/dvutils documentation built on Nov. 20, 2021, 11:01 a.m.