triangle | R Documentation |

Generates a triangle representing the 2-simplex.

triangle(labels = c("1", "2", "3"))

`labels` |
String vector of length 3 that names the edges of the triangle. |

List of size 2 with members `coords`

and `canvas`

.
`coords`

holds edge coordinates of the 2-simplex, `canvas`

a ggplot2 plot object of the 2-simplex.

Daniel Gebele dngebele@gmail.com

triangle()

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.