create_base_plot_num: Create a numeric choropleth

Description Usage Arguments Value

Description

Create a numeric choropleth

Usage

1
2
3
4
5
6
7
8
create_base_plot_num(
  choropleth_data,
  min_color,
  max_color,
  na_color,
  unit_text,
  iceland
)

Arguments

choropleth_data

An sf object with the numerical data in column values.

min_color

A color for the minimum values.

max_color

A color for the maximum values.

na_color

Defaults to "grey93". This color will be used in the color palette for missing values, unless you have explicitly set one of the names of the palette to "missing".

unit_text

Defaults to NULL. The title caption of the color (fill) legend.

iceland

A logical variable to show Iceland on the map.

Value

A ggplot object containing the choropleth map.


antaldaniel/satellitereport documentation built on Aug. 7, 2020, 8:37 a.m.