View source: R/coords_to_ternary.R
coords_to_ternary | R Documentation |
Process coordinates data.frame
coords_to_ternary(coords, grouping = NULL)
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 |
data.frame
suitable for plotting with ggtern()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.