mapnum: either 1 for mapping only facilities/sources or 2 for also mapping river segment metrics
featr_type: either source or facility
origin_type: basin, locality, or region
style: the map style desired (ex: "custom")
metric: currently not used in the script, point size and segment fill s based on bins
origin: corresponds to origin_type, either a riverseg ID ("PL3_5360_5250"), locality name ("Culpeper") , or region name ("Roanoake_1")
bbox: bounding box of class bboxsegs: dataframe of river segments to be mapped including a column containing geometry
counties: dataframe of county information to be mapped (name, border geometry)
roads: a dataframe containing road data including type and geometry
nhd: an object of class list containing nhd data retrieved for the bounding box bbox with plot_nhdplus(bbox = bbox, actually_plot = FALSE)maplabs: an object of class list containing map labels created with fn_labelprepmp_layer: a dataframe containing metrics and location for sources/facilities to be mapped
metric_unit: the units for the metric being mapped (cfs, mgd, etc)
maptitle: character title for the map
Documentation for
fn_mapgen
: the mapping function originally created for Regional Summaries:998
Script https://github.com/HARPgroup/HARParchive/blob/master/HARP-2023-Summer/Mapping/Functions/fn_mapgen.R
Function
mapnum
: either1
for mapping only facilities/sources or2
for also mapping river segment metricsfeatr_type
: either source or facilityorigin_type
: basin, locality, or regionstyle
: the map style desired (ex: "custom")metric
: currently not used in the script, point size and segment fill s based on binsorigin
: corresponds toorigin_type
, either a riverseg ID ("PL3_5360_5250"
), locality name ("Culpeper"
) , or region name ("Roanoake_1"
)bbox
: bounding box of classbbox
segs
: dataframe of river segments to be mapped including a column containing geometrycounties
: dataframe of county information to be mapped (name, border geometry)roads
: a dataframe containing road data including type and geometrynhd
: an object of classlist
containing nhd data retrieved for the bounding boxbbox
withplot_nhdplus(bbox = bbox, actually_plot = FALSE)
maplabs
: an object of classlist
containing map labels created withfn_labelprep
mp_layer
: a dataframe containing metrics and location for sources/facilities to be mappedmetric_unit
: the units for the metric being mapped (cfs
,mgd
, etc)maptitle
: character title for the mapExample
Packages
Functions