powered by
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 )
A data.frame with n_points rows and ten columns:
data.frame
n_points
Weight (g), Water_g, Protein_g, Ash_g,
Weight
Water_g
Protein_g
Ash_g
Fat_g (all in g), Water_fraction, Protein_fraction,
Fat_g
Water_fraction
Protein_fraction
Ash_fraction, Fat_fraction (dimensionless fractions of total wet weight), and Energy_density (J/g wet weight).
Ash_fraction
Fat_fraction
Energy_density
Weight range to analyze (2-element vector), default c(1, 500)
Number of points to analyze, default 50
Processed composition parameters
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)
Run the code above in your browser using DataLab