ONLY FOR BACKWARDS COMPATIBILITY - Produce a plot of a trinomial distribution in a Holmans' triangle ' ' Takes a data.frame of three columns and returns a triangle plot with a point for each row, and positioned between the vertices based on the trinomial distribution. After broman::triplot
1 |
df |
A data.frame of three columns. Where a row does not sum to 1, it will be rescaled. Negative values will cause an error. |
colour |
A vector to be passed to geom_point to colour points. Needs to be sorted the same as df, since it is joined by /codecbind(). |
colourLegend |
A character string to be used as a legend label if points are coloured. |
labelPoints |
A vector of labels for points, if the points in the plot should be labelled. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.