final.plot {overlapping} | R Documentation |
Final plot
Description
Graphical representation of the estimated densities along with the overlapping area.
Usage
final.plot( x, pairs = FALSE, boundaries = NULL )
Arguments
x |
a list of numerical vectors to be compared; each vector is an element of the list, see |
pairs |
logical, if |
boundaries |
an optional vector indicating the minimum and the maximum over a predefined subset of the support of the empirical densities. |
Details
It requires the package ggplot2
.
Note
The output plot can be customized using the ggplot2
rules, see example below.
Author(s)
Massimiliano Pastore
Examples
set.seed(20150605)
x <- list(X1=rnorm(100),X2=rt(50,8),X3=rchisq(80,2))
final.plot(x)
final.plot(x, pairs = TRUE)
# customizing plot
final.plot(x) + scale_fill_brewer() + scale_color_brewer()
final.plot(x) + theme(text=element_text(size=15))
[Package overlapping version 2.1 Index]