Generate an interactive Sankey diagram showing the fate of coral larvae through dispersal, settlement, and mortality.
Usage
flowchart_coralseed(
seed_particles_input,
settle_particles_input,
save_output = NULL,
multiplier = 1,
postsettlement = 0.8,
width = 10,
height = 6
)Arguments
- seed_particles_input
An
sfobject or tibble containing all released larval trajectories with at leastid,dispersaltime, andstate.- settle_particles_input
A named list containing
$points, ansfobject with settled larvae andid.- multiplier
Numeric multiplier to scale particle counts (e.g., if each simulated particle represents multiple larvae).
- postsettlement
Postsettlement mortality in proportion (e.g. 80% = 0.8)