Description Usage Arguments Value Examples
This function generates a right-angle mixture triangle demonstrating the nutrient balance of foods. All you need to do is input 3 nutrients and a grouping variable, and voila!
1 | RMTfunction(data, x, y, z, id)
|
data |
the dataframe holding your data |
x |
X axis nutrient (will be labelled on an energy (kCal) basis) |
y |
Y axis nutrient (will be labelled on an energy (kCal) basis) |
z |
Z/implicit axis nutrient (will be labelled on an energy (kCal) basis) |
id |
an optional argument. Grouping variable or other indicator of multiple groups within your dataset. |
dataframe of proportional nutrient data, along with right-angle mixture triangle for data
1 | RMTfunction(gorillafood,carb,fat,protein,age)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.