Learn R Programming

EvolutionaryGames (version 0.1.2)

triangle: Triangle for 2-simplex operations

Description

Generates a triangle representing the 2-simplex.

Usage

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

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.

Arguments

labels

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

Author

Daniel Gebele dngebele@gmail.com

Examples

Run this code
triangle()

Run the code above in your browser using DataLab