Code
grid <- seq(-8, 8, length.out = 400)
cauchy_sets <- list(
list(label = "Base", location = 0, scale = 1),
list(label = "Mix A", w = c(0.6, 0.3, 0.1), location = c(-1, 0, 1), scale = c(1.0, 1.2, 2)),
list(label = "Mix B", w = c(0.5, 0.3, 0.2), location = c(-1.5, 0.5, 1.5), scale = c(1.1, 1.0, 0.9))
)
base_par <- cauchy_sets[[1]]
mix_par1 <- cauchy_sets[[2]]