Description Usage Arguments Value
View source: R/create_impact_table_single.R
'create_impact_table_single()' takes output from 'link_all_units()' and creates a table of spatial impacts
1 2 3 | create_impact_table_single(data.linked, data.units, link.to = "zips",
zcta.dataset = NULL, counties. = NULL, map.month, map.unitID,
metric = "N")
|
data.linked |
data for plotting as output from disperseR::link_all_units() |
data.units |
information on unit locations as output from disperseR::units() |
link.to |
spatial scale for plotting. One of 'zips', 'counties', or 'grids' that should match original input to disperseR::link_all_units() |
zcta.dataset |
ZIP code/ZCTA sptial dataset as imported by disperseR::get_data() or subset thereof |
counties. |
US counties dataset as imported using USAboundaries::us_counties( ) or subset thereof |
map.month |
specific month to map in form YYYYMM if time.agg = 'month'. Can be created using disperseR::get_yearmon() |
map.unitID |
specific unit to map as string. Must match 'ID' column in data.units. |
metric |
plotting metric in ‘data.linked' input. Defaults to ’hyads', the default output of disperseR::calculate_exposure(). |
An sf data.table of impacts for a single unit and month suitable for plotting
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.