Create animated spatial plot over time
Usage
animate_spatial_spread(
results,
compartment = "I",
replicate = 1,
n_rows = 5,
n_cols = 5,
time_points = NULL
)Arguments
- results
plague_results object (must be spatial)
- compartment
Compartment to animate (default "I")
- replicate
Which replicate to plot (default 1)
- n_rows
Number of rows in spatial grid (default 5)
- n_cols
Number of columns in spatial grid (default 5)
- time_points
Vector of time points to include (NULL for all)