#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)
}
Run the code above in your browser using DataLab