triangle: Triangle for 2-simplex operations

Description Usage Arguments Value Author(s) Examples

View source: R/triangle.R

Description

Generates a triangle representing the 2-simplex.

Usage

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

Arguments

labels

String vector of length 3 that names the edges of the triangle.

Value

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.

Author(s)

Daniel Gebele [email protected]

Examples

1

EvolutionaryGames documentation built on Nov. 27, 2017, 5:05 p.m.