View source: R/15.2-analysis-nutritional.R
| analyze_composition_by_size | R Documentation |
Analyzes body composition across a range of fish sizes to understand allometric relationships and size-dependent changes.
analyze_composition_by_size(
weight_range = c(1, 500),
n_points = 50,
processed_composition_params
)
weight_range |
Weight range to analyze (2-element vector), default c(1, 500) |
n_points |
Number of points to analyze, default 50 |
processed_composition_params |
Processed composition parameters |
A data.frame with n_points rows and ten columns:
Weight (g), Water_g, Protein_g, Ash_g,
Fat_g (all in g), Water_fraction, Protein_fraction,
Ash_fraction, Fat_fraction (dimensionless fractions of
total wet weight), and Energy_density (J/g wet weight).
comp_params <- process_composition_params(list())
comp_analysis <- analyze_composition_by_size(c(1, 500), 20, comp_params)
plot(comp_analysis$Weight, comp_analysis$Energy_density)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.