plot_density | R Documentation |
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) )
mass_matrix |
a squared matrix containing the mass distribution, e.g. output of the function |
density |
a logical (TRUE = default) whether the density or the mass is plotted. |
color |
Select the color palette. Options are c("plasma" (default), "viridis", "inferno", "magma", "cividis"). |
rb_values |
a vector of size 3 with number of values, start value and end value in the rainbow colors space. |
a density plot (or mass distribution)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.