View source: R/functions_build_plot.r
add.density | R Documentation |
Add a layer with density curves to an mca map.
add.density(
object,
dim = c(1, 2),
ind = extract_ind(object, dim),
mapping = aes(),
...
)
object |
a soc.mca result object |
dim |
a numeric vector with the dimensions for the plane |
ind |
a data.frame with coordinates of cases as produced by extract_ind. This controls the points that are used for the density curves. |
mapping |
a call to aes from the ggplot2 package. Here you can map aesthetics to variables such as color, fill, alpha, size and linetype. |
... |
further arguments are passed onto geom_density_2d |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.