Sweep over diffusion length values
Source:R/estimate_concentration_field.R
sweep_diffusion_length.RdConvenience wrapper that calls estimate_concentration_field() once per
value in L_values, returning a combined tidy data.frame with a column
L identifying each run. Useful for visualising how the diffusion length
changes the field.
Arguments
- L_values
Numeric vector of diffusion lengths to sweep over.
- mask
An
sfcpolygon mask (seeestimate_concentration_field()).- transcript_coords
Transcript coordinates (see
estimate_concentration_field()).- verbose
Logical. If
FALSE(default), suppress per-run output.- ...
Additional arguments passed to
estimate_concentration_field()(e.g.method,grid_resolution,D). Do not passdiffusion_lengthorverbosehere; use the dedicated arguments above.
Value
A data.frame combining field_to_df() output for every value in
L_values, with an added column L.