This function automates construction and analysis of a spatial
population matrix model, from construction of the vec-permutation matrix to
plotting. The user provides a `path` and `filename` for a spmm formatted
Excel Workbook (.xlsx).
Future plans include a "report" option that would include an RMarkdown (.Rmd)
and Word Document (.docx) as outputs. Additionally, I am exploring the ability
to "update" a spmm as a convenience function.
Usage
auto.spmm(path, filename, plot = FALSE, ylabs = NA, xlabs = NA, ...)
Arguments
- path
path to xlsx workbook
- filename
name of xlsx workbook
- plot
optional; output plots from `auto.spmm`?
- ylabs
optional; labels for y-axis labels
- xlabs
optional; labels for x-axis labels
- ...
optional; additional arguments passed to `spmm.project`
Note
Workbook should follow template found in extdata. Objects can be
assigned from the list using the unpacking / destructuring assignment "
from the zeallot package. (metapopbio currently lists zeallot as a dependency).
References
Schauberger P, Walker A (2022). openxlsx: Read, Write and Edit xlsx Files.
https://ycphs.github.io/openxlsx/index.html, https://github.com/ycphs/openxlsx.