plotmirror: Plots 3-d mirror output in readable format

Description Usage Arguments Value Examples

Description

Plot the steps of a random walk on the simplex in 3 varibles, using arrows to direct

Usage

1

Arguments

m

A matrix with 3 rows, corresponding to the output of a call to mirror with includeInfeasible = TRUE.

Value

A ggplot object gives the arrow plot

Examples

1
2
3
4
5
A <- matrix(1, ncol = 3)
x0 <- c(.2, -.2, 1)

m <- mirror(A, x0, n = 1, includeInfeasible = TRUE)
plotmirror(m)

davidkane9/kmatching documentation built on May 15, 2019, 1:14 a.m.