data.grid {GRIDCOPULA} | R Documentation |
Draws the scatter plot of bivariate data in the unit square
Description
Draws the scatter plot of bivariate data in the unit square
Usage
data.grid(U, draw.lines = TRUE, k = 4, m = 4)
Arguments
U |
matrix of size |
draw.lines |
draws lines inside the unit square or not. |
k |
positive integer indicating the number of subintervals for the |
m |
positive integer indicating the number of subintervals for the |
Value
Returns a scatter plot of bivariate data in the unit square.
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
data.grid(U=df, draw.lines = FALSE, k = k, m = m)
data.grid(U=df, draw.lines = TRUE, k = k, m = m)
[Package GRIDCOPULA version 1.0.1 Index]