hyper_3D {TML}R Documentation

2D or 3D rendering of max-plus or min-plus tropical hyperplane

Description

This function renders a 2D or 3D max-plus or min-plus tropical hyperplane

Usage

hyper3d_max(D, di, mi, ma, plt = FALSE)

hyper3d_min(D, di, mi, ma, plt = FALSE)

Arguments

D

point in the tropical projective torus representing the apex of the hyperplane

di

scalar; indicates how far the hyperplane should extend

mi

scalar; minimum value on axes of the plot

ma

scalar; maximum value on axes of the plot

plt

logical; if true produces a new plot otherwise overlays tropical hyperplane on existing plot

Value

2D or 3D rendering of max-plus or min-plus tropical hyperplane

Author(s)

David Barnhill david.barnhill@nps.edu

Examples

# 2D Example
D <-t(as.matrix(c(0,0,0)))
di<-4
mi<- -5
ma<-5
hyper3d_max(D,di,mi,ma,plt=TRUE)
hyper3d_min(D,di,mi,ma,plt=TRUE)

# 3D Example
D <-t(as.matrix(c(0,0,0,0)))
di<-4
mi<- -5
ma<-5
hyper3d_max(D,di,mi,ma,plt=TRUE)
hyper3d_min(D,di,mi,ma,plt=TRUE)

[Package TML version 1.2.0 Index]