Description Usage Arguments Value Examples
This function generates a rail plot demonstrating the nutrient balance of foods. It then plots the nutrient rails (intake rails) for each group delineated in your data set All you need to do is input 2 nutrients and a grouping variable, and voila!
1 | Groupwiserail(data, id, x, y)
|
data |
the dataframe holding your data |
id |
your grouping variable |
x |
X axis nutrient (will be labelled on an energy (kCal) basis) |
y |
Y axis nutrient (will be labelled on an energy (kCal) basis) |
A complete plot demonstrating the intake rail for EACH GROUP (see Railfunction for total dataset). The groups intake ratio will be printed close to the cluster, and identified through the group ID. Bear with me, it's a work in progress!
1 | Railfunction(baboondailyintake,individual,carb,fat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.