project onto a standard 3d simplex.

project_to_simplex(df_3d, column_names = c("x", "y", "z"))

Arguments

df_3d

data frame

column_names

names of columns for the 3 dimensions. Can be in the form c(x,y,z) or c("x","y","z").

Value

an updated version of df_3d with points projected onto simplex.