Learn R Programming

VineCopula (version 1.6-1)

plot.BiCop: Plotting tools for BiCop objects

Description

There are several options for plotting BiCop objects. The density of a bivariate copula density can be visualized as contour or surface/perspective plot. Optionally, the density can be coupled with standard normal margins (default for contour plots). Furthermore, a lambda-plot is available (c.f. BiCopLambda).

Usage

## S3 method for class 'BiCop':
plot(x, type = "contour", margins, size, ...)

Arguments

x
BiCop object.
type
plot type; either "contour", "surface" or "lambda" (partial matching is activated); the latter is only implemented for a few families (c.f. BiCopLambda).
margins
only relevant for types "contour" and "surface"; either "unif" for the original copula density or "norm" for the transformed density with standard normal margins (partial matching is activated). Default
size
integer; only relevant for types "contour" and "surface"; the plot is based on values on a $size x size$ grid; default is 100 for type = "contour", and 25 for type = "surface".
...
optional arguments passed to contour or wireframe.

See Also

BiCop, contour, wireframe

Examples

Run this code
## construct BiCop object for a Tawn copula
obj <- BiCop(family = 104, par = 2.5, par2 = 0.4)

## plots
plot(obj)  # (marginal normal) contour plot
plot(obj, margins = "unif")  # contour plot of actual copula density
plot(obj, type = "surf")  # surface plot of actual copula densityu

Run the code above in your browser using DataLab