coords_to_ternary: Process coordinates data.frame

View source: R/coords_to_ternary.R

coords_to_ternaryR Documentation

Process coordinates data.frame

Description

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().


Middleton-Lab/MuscleTernary documentation built on Dec. 4, 2023, 10:28 p.m.