View source: R/unbalanced_wpp.R
plot.ut_wpp | R Documentation |
Graphic representation of components of the list returned by unbalanced
.
## S3 method for class 'ut_wpp'
plot(
x,
what = c("plan", "extra", "trans"),
axes = FALSE,
xlim = c(0, 1),
ylim = c(0, 1),
...
)
x |
the list returned by |
what |
character. The aspect of the unbalanced transport information to display. |
axes |
logical. Whether to plot axes (ignored for |
xlim , ylim |
numeric vectors of length 2. The x- and y-limits of the plot. |
... |
further graphics parameters passed to |
Nothing. Used for the side effect.
## Not run:
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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.