Learn R Programming

TML (version 2.3.0)

hyper_3D: 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

draw.thyper(D, ext, min.ax, max.ax, plot = FALSE, tadd = max)

Value

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

Arguments

D

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

ext

scalar; indicates how far the hyperplane should extend

min.ax

scalar; value applied to define the minimum limits of the axes of the plot

max.ax

scalar; value applied to define the maximum limits of the axes of the plot

plot

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

tadd

function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max

Author

David Barnhill david.barnhill@nps.edu

Examples

Run this code
# 2D Example
D <-c(0,0,0)
ext<-4
min.ax<- 5
max.ax<- 5
draw.thyper(D,ext,min.ax,max.ax,plot=TRUE)

# 3D Example
D <-c(0,0,0,0)
ext<-4
min.ax<- 5
max.ax<- 5
draw.thyper(D,ext,min.ax,max.ax,plot=TRUE)
draw.thyper(D,ext,min.ax,max.ax,plot=TRUE,tadd=min)

Run the code above in your browser using DataLab