map_grid_leaflet: Create an interactive map of model grid

Description Usage Arguments Value Examples

View source: R/mapCities.R

Description

This function creates an interactive map of the grid points of a climate model used for the study locations and draws lines connecting each study city to its climate model grid point. This map is made using the leaflet package.

Usage

1
map_grid_leaflet(plot_model, out)

Arguments

plot_model

A character string with the name of the model to plot

out

Character string with pathname to which extreme event files were written by gen_hw_set. Typically, this will be the same pathname as that specified with out when running gen_hw_set.

Value

A leaflet object with a map of grid points for the climate model that were used in processing extreme events for the study locations, with a line drawn from each study locations to the grid point used for it. This map can be explored interactively.

Examples

1
2
out <- system.file("extdata/example_results", package = "futureheatwaves")
map_grid_leaflet(plot_model = "bcc1", out = out)

futureheatwaves documentation built on May 30, 2017, 1:07 a.m.