image_color_grid {GRIDCOPULA} | R Documentation |
Draws the density of a grid copula with colors
Description
Draws the density of a grid copula with colors
Usage
image_color_grid(gc, color.name = "heat.colors", color.size = 7)
Arguments
gc |
a grid type copula object. |
color.name |
indicates the palette of colors. |
color.size |
indicates the number of colors. |
Value
Returns a graph of the density.
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")
image_color_grid(gc = copula.grid, color.name = "rainbow", color.size = 10)
#Iris
copula.grid <- estimate.gridCopula(X = iris[,1:2], k = k, m = m , method = "ml")
image_color_grid(gc = copula.grid, color.name = "rainbow", color.size = 10)
[Package GRIDCOPULA version 1.0.1 Index]