Skip to contents

Process coordinates data.frame

Usage

coords_to_ternary(coords, grouping = NULL)

Arguments

coords

`data.frame` or `tibble` containing coordinates and other columns to be plotted in ternary space. Required columns are at least "muscle", "x_origin", "y_origin", "z_origin", "x_insertion", "y_insertion", and "z_insertion"

grouping

Character vector of grouping variables for calculating means. Defaults to `NULL`, which will return all the original rows and columns

Value

data.frame suitable for plotting with ggtern().