triangle: Triangle for 2-simplex operations

View source: R/triangle.R

triangleR Documentation

Triangle for 2-simplex operations

Description

Generates a triangle representing the 2-simplex.

Usage

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 dngebele@gmail.com

Examples

triangle()

EvolutionaryGames documentation built on April 11, 2022, 5:07 p.m.