Groupwiserail: Groupwise Rail Plot

Description Usage Arguments Value Examples

Description

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!

Usage

1
Groupwiserail(data, id, x, y)

Arguments

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)

Value

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!

Examples

1
Railfunction(baboondailyintake,individual,carb,fat)

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