Skip to contents

Plot the lines of a linear mathematical program (Ax = b)

Usage

plotLines2D(A, b, nonneg = rep(TRUE, ncol(A)), latex = FALSE, ...)

Arguments

A

The constraint matrix.

b

Right hand side.

nonneg

A boolean vector of same length as number of variables. If entry k is TRUE then variable k must be non-negative and the line is plotted too.

latex

If True make latex math labels for TikZ.

...

Further arguments passed on the the ggplot plotting functions. This must be done as lists. Currently the following arguments are supported:

Value

A ggplot object.

Note

In general you will properly use plotPolytope() instead of this function.

See also

Author

Lars Relund lars@relund.dk