View source: R/15.2-analysis-nutritional.R
| compare_with_redfield | R Documentation |
Compares calculated N:P ratios with the classical Redfield ratio. Useful for understanding deviations from typical oceanic proportions.
compare_with_redfield(np_ratios)
np_ratios |
List result from calculate_np_ratios |
A data.frame with one row per process and six columns:
Process (character), NP_Ratio (numeric),
Redfield_Ratio (numeric), Difference (numeric;
observed minus Redfield), Relative_Difference (numeric; %
deviation from Redfield), and Interpretation (character;
one of "N-rich relative to P", "N-poor relative to P",
"No P available", or "No flux").
nitrogen <- list(consumed = 10, growth = 3, excretion = 5, egestion = 2)
phosphorus <- list(consumed = 1.5, growth = 0.5, excretion = 0.6, egestion = 0.4)
np <- calculate_np_ratios(nitrogen, phosphorus)
compare_with_redfield(np)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.