persp-methods {copula} | R Documentation |
Methods for function persp
to draw perspective plots (of
two dimensional distributions from package copula.
## S4 method for signature 'copula' persp(x, fun, n = 51, delta = 0, xlab = "x", ylab = "y", zlab = deparse(substitute(fun))[1], theta = -30, phi = 30, expand = 0.618, ticktype = "detail", ...) ## S4 method for signature 'mvdc' persp(x, fun, xlim, ylim, nx = 51, ny = 51, xis = seq(xlim[1], xlim[2], length = nx), yis = seq(ylim[1], ylim[2], length = ny), xlab = "x", ylab = "y", zlab = deparse(substitute(fun))[1], theta = -30, phi = 30, expand = 0.618, ticktype = "detail", ...)
x |
|
fun |
n |
(for |
delta |
a very small number in [0, 1/2),
defaulting to zero. The x- and y- vectors will use range
|
xlim, ylim |
( |
nx,ny |
( |
xis, yis |
( |
xlab, ylab, zlab, theta, phi, expand, ticktype, ... |
arguments
for (the default method of) |
invisibly (invisible
) a list with components
x,y |
the numeric vectors, as passed to |
z |
the nx x ny matrix, as passed to
|
persp |
the 4 x 4 transformation matrix
returned by |
Perspective plots for both "copula"
or
"mvdc"
objects, see x
in the
Arguments section.
The contour-methods
for drawing contour lines of the
same functions.
persp(frankCopula(-0.8), dCopula) persp(claytonCopula(2), pCopula, main = "CDF of claytonCopula(2)") ## example with negative tau : (th1 <- iTau(amhCopula(), -0.1)) persp(amhCopula(th1), dCopula) persp(amhCopula(th1), pCopula, ticktype = "simple")# no axis ticks mvNN <- mvdc(gumbelCopula(3), c("norm", "norm"), list(list(mean = 0, sd =1), list(mean = 1))) persp(mvNN, dMvdc, xlim=c(-2, 2), ylim=c(-1, 3), main="Density") persp(mvNN, pMvdc, xlim=c(-2, 2), ylim=c(-1, 3), main="Cumulative Distr.")