Learn R Programming

transport (version 0.15-4)

plot.ut_wpp: Plot Unbalanced Transport Information

Description

Graphic representation of components of the list returned by unbalanced.

Usage

# S3 method for ut_wpp
plot(
  x,
  what = c("plan", "extra", "trans"),
  axes = FALSE,
  xlim = c(0, 1),
  ylim = c(0, 1),
  ...
)

Value

Nothing. Used for the side effect.

Arguments

x

the list returned by unbalanced with option output="all".

what

character. The aspect of the unbalanced transport information to display.

axes

logical. Whether to plot axes (ignored for what="plan").

xlim, ylim

numeric vectors of length 2. The x- and y-limits of the plot.

...

further graphics parameters passed to plot.pgrid for what="plan" and passed to matimage in all other cases.

Examples

Run this code
if (FALSE) {
set.seed(33)
m <- 50
n <- 20
massa <- rexp(m)
massb <- rexp(n)
a <- wpp( matrix(runif(2*m), m, 2), massa)
b <- wpp( matrix(runif(2*n), n, 2), massb)
res <- unbalanced(a,b,1,0.3,output="all")
plot(res, what="plan")
plot(res, what="trans")
plot(res, what="extra")}

Run the code above in your browser using DataLab