perspective.grid {GRIDCOPULA} | R Documentation |
Draws the density / distribution function of a grid copula with perspective
Description
Draws the density / distribution function of a grid copula with perspective
Usage
perspective.grid(
gc,
FUN = "d.grid",
u1 = seq(0, 1, length.out = 21),
u2 = seq(0, 1, length.out = 21),
ang.theta = -30,
ang.phi = 25,
distancia = 10
)
Arguments
gc |
a grid type copula object. |
FUN |
the name of the function to be applied (d.grid, p.grid), default is 'd.grid'. |
u1 |
indicates the place for lines on axis |
u2 |
indicates the place for lines on axis |
ang.theta |
angle for the azimuthal direction. |
ang.phi |
angle for the colatitude. |
distancia |
the distance of the eyepoint from the centre of the box. |
Value
Returns a graph of the density / distribution.
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")
perspective.grid(gc = copula.grid, ang.theta = 90 , ang.phi = 80, distancia = 3)
perspective.grid(gc = copula.grid, FUN = "p.grid")
#Iris
copula.grid <- estimate.gridCopula(X = iris[,1:2], k = k, m = m , method = "ml")
perspective.grid(gc = copula.grid, ang.theta = 90 , ang.phi = 80, distancia = 3)
perspective.grid(gc = copula.grid, FUN = "p.grid")
[Package GRIDCOPULA version 1.0.1 Index]