mosaic.grid {GRIDCOPULA}R Documentation

Draws the density of a grid copula with mosaics

Description

Draws the density of a grid copula with mosaics

Usage

mosaic.grid(gc, number.size = 5)

Arguments

gc

a grid type copula object.

number.size

indicates the size of numbers.

Value

Returns a graph.

Examples

n <- 500
x <- rgamma(n,4,1/2)
e <- rnorm(n,0,.3)
y <- sin(x+e)
Fx <- ecdf(x)
Fy <- ecdf(y)
u <- Fx(x)
v <- Fy(y)
df <- cbind(u,v)
k <- 10
m <- 10
copula.grid <- estimate.gridCopula(U = df, k = k, m = m , method = "ml")
mosaic.grid(gc = copula.grid, number.size = 5)

#Iris
copula.grid <- estimate.gridCopula(X = iris[,1:2], k = k, m = m , method = "ml")
mosaic.grid(gc = copula.grid, number.size = 5)

[Package GRIDCOPULA version 1.0.1 Index]