contour-methods {copula}R Documentation

Methods for function ‘contour’ in package ‘copula’

Description

Methods for function contour in package copula

Details

When x is of class "copula", the following arguments can be supplied:

fun
the function to be plotted, i.e.,"dcopula" or "pcopula".
n (= 51)
the number of points to do the plotting.
arguments for "contour"
theta = -30, phi = 30, expand = 0.618.

When x is of class "mvdc", the following arguments replace the effect of n = 51:

xlim
the range of the x variable.
ylim
the range of the y variable.
nx
the number of points for x to expand.
ny
the number of points for y to expand.

Methods

x = "copula"
Contour plot for a "copula" or "indepCopula" object.
x = "mvdc"
Contour plot for a "mvdc" object.

Examples

contour(frankCopula(-0.8), dcopula)
contour(claytonCopula(2), pcopula)
x <- mvdc(gumbelCopula(3), c("norm", "norm"),
          list(list(mean = 0, sd =1), list(mean = 1)))
contour(x, dmvdc, xlim=c(-2, 2), ylim=c(-1, 3))
contour(x, pmvdc, xlim=c(-2, 2), ylim=c(-1, 3))

[Package copula version 0.8-3 Index]