Transform the matrices returned by `ba_decay` into a tidy table that can be joined with other data or mapped with `ggplot2`.
ba_decay_long(
mu_values,
sp,
gx,
gy,
ba,
r,
exponential_normal = FALSE,
edge_correction = c("none", "safe"),
bounds = NULL
)A data frame with `tree_id`, `species`, `mu`, `con_ba`, and `total_ba`.
Numeric vector of decay parameters.
Character/factor species vector.
Numeric x-coordinates.
Numeric y-coordinates.
Numeric basal area.
Positive radius threshold.
Logical passed to `ba_decay`.
Character; see `ba_simple()` for the `"safe"` option.
Optional numeric vector `c(xmin, xmax, ymin, ymax)` giving the plot extent. When `NULL`, the range of `gx`/`gy` is used; supply bounds if your data do not span the full plot.