gggauges: Map river gauging stations

Description Usage Arguments Details Value

Description

Make two maps of streamflow gauging stations used in model training and testing. One map of perennial stations and the other one of non-perennial stations.

Usage

1
gggauges(in_gaugepred, in_basemaps, binarg, binvar)

Arguments

in_gaugepred

data.table of predictions for gauging stations. Output from bind_gaugepreds.

in_basemaps

list of basemaps sf objects.

binarg

(vector) inner bin breaks to plot histogram for gauging stations.

binvar

(character) column to plot histogram of gauging stations with

Details

The maps include a histogram of streamflow record duration in each map. binarg c(30, 60, 100) is supplied to show four bins in the histogram (10-30, 30-60, 60-100, >100).

This function was used to produce the data underlying Figure 3 of the Main Text of Messager et al. 2021. see test_joincount for more details on the procedure for testing spatial autocorrelation.

Value

ggplot (patchwork)


messamat/globalIRmap documentation built on July 4, 2021, 10:48 a.m.