View source: R/plot.kdecopula.R
plot.kdecopula | R Documentation |
kdecopula
objectsProduces perspective or contour plots for a kdecopula
object.
## S3 method for class 'kdecopula'
plot(x, type = "surface", margins, size, ...)
## S3 method for class 'kdecopula'
contour(x, margins = "norm", size = 100L, ...)
x |
|
type |
plot type; either |
margins |
|
size |
integer; the plot is based on values on a |
... |
optional arguments passed to |
Thomas Nagler
Nagler, T. (2018) kdecopula: An R Package for the Kernel Estimation of Bivariate Copula Densities. Journal of Statistical Software 84(7), 1-22
kdecop
,
contour
,
wireframe
## load data and transform with empirical cdf
data(wdbc)
udat <- apply(wdbc[, -1], 2, function(x) rank(x)/(length(x)+1))
## estimation of copula density of variables 5 and 6
obj <- kdecop(udat[, 5:6])
## plots
plot(obj) # surface plot of copula density
contour(obj) # contour plot with standard normal margins
contour(obj, margins = "unif") # contour plot of copula density
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.