Description Usage Arguments Value
View source: R/plot_impact_single.R
'plot_impact_single()' takes output from 'link_all_units()' and creates a spatial plot
1 2 3 4 |
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. Required only if link.to = 'zips'. |
counties. |
US counties dataset as imported using USAboundaries::us_counties( ) or subset thereof. Required only if link.to = 'counties'. |
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. |
plot.name |
plot title string. Defaults to NULL, or a descriptive title combining the metric, map.month, and map.unitID |
metric |
plotting metric in ‘data.linked' input. Defaults to ’hyads', the default output of disperseR::calculate_exposure(). |
legend.lims |
legend limits string. Defaults to NULL, which creates a scale from 0 to the 95th percentile of the 'metric'. Should be in the form c(lower,upper). |
legend.name |
legend name string. Defaults to NULL, which creates a legend title of 'Aggregate HyADS Exposure'. |
graph.dir |
location to save output. |
... |
modeling parameters passed to ggplot2::theme() |
Creates ggplot object of spatial HyADS impacts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.