map_grid_ggmap: Create a map of model grid using ggmap

Description Usage Arguments Value Note Examples

Description

This function creates a 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, using as a base a map pulled from Google Maps with ggmap.

Usage

1
map_grid_ggmap(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 ggplot2 object with a map of grid points for the climate model that were used in processing heat waves for the study locations, with a line drawn from each study locations to the grid point used for it.

Note

This function creates a ggplot2 object, so the output can be edited using ggplot2 functions.

Examples

1
2
3
4
5
## Not run: 
out <- system.file("extdata/example_results", package = "futureheatwaves")
map_grid_ggmap(plot_model = "bcc1", out = out)

## End(Not run)

geanders/futureheatwaves documentation built on May 17, 2019, 12:14 a.m.