diff_leaflet: Leaflet plot of difference between two scenarios.

View source: R/zone_leaflet.R

diff_leafletR Documentation

Leaflet plot of difference between two scenarios.

Description

Leaflet plot of difference between two scenarios.

Usage

diff_leaflet(
  db1,
  db2,
  year,
  variable = c("Population", "Employment", "HH"),
  scen_names = c("Reference", "Current"),
  ...
)

Arguments

db1

Reference scenario VIZ database connection.

db2

Current scenario VIZ database connection.

year

Year in which to compare the two scenarios.

variable

Which variable to show in difference plot; currently variable = c("Population", "Employment", "HH")

scen_names

Names of the scenarios in the comparison. Defaults to "Reference", "Current".

...

Additional parameters passed to extract_zones.

Details

Note that if the zones geography is pulled from the database (the default), only zones from db1 are used for the map. In case zones differ between db1 and db2, note that the difference is based on a join between the zone data based on AZONE.


pbsag/swimr documentation built on July 4, 2025, 12:10 p.m.