RMTfunction: Right-angle Mixture Triangles

Description Usage Arguments Value Examples

Description

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!

Usage

1
RMTfunction(data, x, y, z, id)

Arguments

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.

Value

dataframe of proportional nutrient data, along with right-angle mixture triangle for data

Examples

1
RMTfunction(gorillafood,carb,fat,protein,age)

PrimateEats/balancr documentation built on May 16, 2019, 11:10 p.m.