View source: R/stat_pde_density.R
stat_pde_density | R Documentation |
This function enables to replace the default density estimation for ggplot2 plots with the Pareto density estimation [Ultsch, 2005]. It is used for the PDE-Optimized violin plot published in [Thrun et al, 2018].
stat_pde_density(mapping = NULL, data = NULL,
geom = "violin", bounds = bounds,
position = "dodge", ...,
trim = TRUE, scale =
"area", na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
geom |
The geometric object to use display the data |
bounds |
bounds |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Other arguments passed on to |
trim |
This parameter only matters if you are displaying multiple
densities in one plot. If |
scale |
When used with |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
Pareto Density Estimation (PDE) is a method for the estimation of probability density functions using hyperspheres. The Pareto-radius of the hyperspheres is derived from the optimization of information for minimal set size. It is shown, that Pareto Density is the best estimate for clusters of Gaussian structure. The method is shown to be robust when cluster overlap and when the variances differ across clusters.
Felix Pape
Ultsch, A.: Pareto density estimation: A density estimation for knowledge discovery, in Baier, D.; Werrnecke, K. D., (Eds), Innovations in classification, data science, and information systems, Proc Gfkl 2003, pp 91-100, Springer, Berlin, 2005.
[Thrun et al, 2018] Thrun, M. C., Pape, F., & Ultsch, A.: Benchmarking Cluster Analysis Methods using PDE-Optimized Violin Plots, Proc. European Conference on Data Analysis (ECDA), accepted, Paderborn, Germany, 2018.
stat_density
miris <- reshape2::melt(iris)
ggplot2::ggplot(miris,
mapping = ggplot2::aes(y = .data$value, x = .data$variable)) +
ggplot2::geom_violin(stat = "PDEdensity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.