| diff_leaflet | R Documentation | 
Leaflet plot of difference between two scenarios.
diff_leaflet(
  db1,
  db2,
  year,
  variable = c("Population", "Employment", "HH"),
  scen_names = c("Reference", "Current"),
  ...
)
| 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
 | 
| scen_names | Names of the scenarios in the comparison. Defaults to "Reference", "Current". | 
| ... | Additional parameters passed to  | 
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.