Prob2Coord: Transforms categorical probabilities of every row into x.y...

Description Usage Arguments See Also Examples

Description

Select your data frame and the three variables with probabilities. The returning dataframe will have the x and y coordinates for every row. When used in conjuction with CreateVertices() plot the vertices and add the points.

Usage

1
Prob2Coord(df, var_left, var_top, var_right, append = FALSE)

Arguments

df

The data frame where variables can be found.

var_left, var_top, var_right

Columns in df that contain probabilities per row, use "columnnames", names (left, top, right) refer to place in final triangle.

append

Return with or without original data frame?.

See Also

Other Heiser.transform.functions: CreateVertices

Examples

1
 {Prob2Coord(testdata, "test1", "test2","test3",append = TRUE)

RMHogervorst/heisertransform documentation built on May 8, 2019, 7:33 a.m.