Description Usage Arguments Value References See Also Examples
Gives a perspective plot of the surface of a given copula object for a specified function.
1 2 3 4 5 |
copula |
A copula object. Supplies the copula to be used for the perspective plot. |
FUN |
character. Decides whether the cdf or pdf of the supplied copula is to be plotted. Accepts "cdf" or "pdf" as input. |
n.grid |
integer. Number of grid points in x- and y-direction. Vector of length two or one (used for both directions). Determines the number of facets. |
delta |
double. A value in the range [0, 0.5) for changing the evaluation boundaries by adding it to the lower limits of x and y and subtracting it from the upper limits of x and y. Defaults to zero. |
xlim |
double. Range of x values to be plotted. Defaults to [0, 1]. |
ylim |
double. Range of y values to be plotted. Defaults to [0, 1]. |
xlab |
character. Title for x-axis. |
ylab |
character. Title for y-axis. |
zlab |
character. Title for z-axis. |
main |
character. Main title for the plot. Set to NULL to omit the title. |
theta |
double. Azimuthal viewing direction. |
phi |
double. Viewing colatitude. |
expand |
double. Expansion factor applied to the z coordinates. |
col.pal |
character. Name of the color palette to be used for the sur- face facets, provided by the function hcl.colors() in the grDevices package. |
border |
character, function, or integer. Color of the line drawn around the surface facets. The default NA shows no borders. NULL corresponds to par("fg"). |
shade |
double. Shade of surface facets. |
ticktype |
character. "simple" draws just an arrow, "detailed" draws normal ticks as in 2D plots. |
... |
character, function, or integer. Additional graphical parameters. |
A perspective plot of a surface over the x-y plane using the values given by FUN for a copula of the form given by the supplied copula object.
Hofert et al. (2018). Elements of Copula Modeling with R. Springer.
Davies (2016). The Book of R: A first course in programming and statistics. no starch press.
1 2 3 4 5 6 7 | excop <- claycop(par = 1, dim = 2)
# Plotting the cdf
coppersplot(copula = excop, FUN = "cdf")
# Plotting the pdf
coppersplot(copula = excop, FUN = "pdf", n.grid = 20, delta= 0.1,
theta = -30, col.pal = "Plasma", border = NULL,
main = "Clayton Copula PDF", cex.main = 0.8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.