View source: R/cyl_rect_combine.R
| cyl_rect_combine | R Documentation |
cyl_rect_combine' ObjectsConstructs a circular-linear copula of class
'cyl_rect_combine' from a rectangular patchwork of copulas.
cyl_rect_combine(
copula,
background = indepCopula(),
low_rect = c(0, 0.5),
up_rect = "symmetric",
flip_up = TRUE
)
copula |
' |
background |
' |
low_rect |
numeric vector of length 2 containing the lower and upper edge (u-value) of the lower rectangle. |
up_rect |
numeric vector of length 2 containing the lower and upper edge (u-value) of the upper rectangle, or the character string "symmetric" if it should be the mirror image (with respect to u=0.5) of the lower rectangle. |
flip_up |
logical value indicating whether the copula ( |
An R object of class 'cyl_rect_combine'.
Durante2009cylcop
\insertRefHodelapplcylcop
\insertRefHodelmethodcylcop
#symmetric rectangles spanning entire unit square
cop <- cyl_rect_combine(copula::frankCopula(2))
if(interactive()){
plot_cop_surf(copula = cop, type = "pdf", plot_type = "ggplot", resolution = 20)
}
#symmetric rectangles, independence copula as background
cop <- cyl_rect_combine(copula::frankCopula(2),
low_rect = c(0, 0.3),
up_rect = "symmetric",
flip_up = FALSE
)
if(interactive()){
plot_cop_surf(copula = cop, type = "pdf", plot_type = "ggplot", resolution = 20)
}
#symmetric rectangles, cy_quadsec-copula as background
cop <- cyl_rect_combine(copula::normalCopula(0.3),
low_rect = c(0.1, 0.4),
up_rect = "symmetric",
background = cyl_quadsec(-0.1)
)
if(interactive()){
plot_cop_surf(copula = cop, type = "pdf", plot_type = "ggplot", resolution = 20)
}
#asymmetric rectangles, von Mises copula as background.
#!!Not a symmetric circular linear copula!!
cop <- cyl_rect_combine(copula::normalCopula(0.3),
low_rect = c(0.1, 0.4),
up_rect = c(0.5, 0.7),
background = cyl_vonmises(mu = pi, kappa = 0.3)
)
if(interactive()){
plot_cop_surf(copula = cop, type = "pdf", plot_type = "ggplot", resolution = 20)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.