Description Usage Arguments See Also Examples
This function generates redfield plots.These plots are a visual comparison between the drawdown of major nutrients to the corresponding
terms of the redfield ratio of C:N:P. This function produces three scatter plots depitcting (1) C:N, (2) C:P, (3) N:P. All three
plots include a reference line that represents the redfield ratio.
The results of this function are printed for you. Each plot is also stored in the global environment if you wish to adjust its
presentation or parameters.
You may subset the redfield data if you want to differentiate between the points on the scatter plot. This is usually used
to separate measurements from different stations or cruises.
1 2 |
C |
Drawdown of organic carbon in umol/kg. |
N |
Drawdown of nitrate in umol/kg. |
P |
Drawdown of phosphate in umol/kg. |
subset |
Subset the data by any variables i.e. cruise, station. |
lwd |
Optional graphic parameter. |
size |
Optional graphic parameter. |
font.size |
Optional graphic parameter. |
lty |
Optional graphic parameter. |
This function relies on ggplot2 (http://ggplot2.tidyverse.org/reference/) for plotting and gridExtra (https://cran.r-project.org/web/packages/gridExtra/gridExtra.pdf) for arranging the plots. Please refer to these packages for any plot customization.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.