powered by
Plots the density/mass of the empirical checkerboard copula.
plot_density( mass_matrix, density = TRUE, color = "plasma", rb_values = c(10, 0.315, 0.15) )
a density plot (or mass distribution)
a squared matrix containing the mass distribution, e.g. output of the function emp_c_copula().
emp_c_copula()
a logical (TRUE = default) whether the density or the mass is plotted.
Select the color palette. Options are c("plasma" (default), "viridis", "inferno", "magma", "cividis").
a vector of size 3 with number of values, start value and end value in the rainbow colors space.
n <- 1000 x <- runif(n,0,1) y <- runif(n,0,1) plot(x,y,pch = 16) mass <- ECBC(x,y,resolution = 10) plot_density(mass, density=TRUE) plot_density(mass, density=FALSE)
Run the code above in your browser using DataLab