Convert ipmr matrix to long data frame
Converts IPM kernels into long data frames. These are useful for
creating plots using ggplot2
.
ipm_to_df(ipm, ...) ## S3 method for class 'array' ipm_to_df(ipm, ...) ## Default S3 method: ipm_to_df(ipm, ..., mega_mat, name_ps = NULL, f_forms = NULL)
ipm |
Output from |
... |
Other arguments passed to methods. |
mega_mat |
A vector with symbols, I's, and/or 0s representing the matrix blocks.
They should be specified in ROW MAJOR order! Can also be a character
string specifying the call. Hierarchical syntax is supported. When used,
|
name_ps |
The prefix(es) for the kernel name that correspond to survival
and growth/maturation of existing individuals. For the model
|
f_forms |
The names of the kernels that correspond to production of new
individuals, and possibly, how they are combined. For example, a model that
includes sexual (with an "F" kernel) and asexual reproduction (with a "C" kernel),
this would be |
A data frame with 3 columns named "t"
, "t_1"
, and
"value"
.
data(gen_di_det_ex) big_mat_df <- ipm_to_df(gen_di_det_ex, mega_mat = c(stay_discrete, go_discrete, leave_discrete, P))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.