final.plot: Final plot

final.plotR 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 overlap.

pairs

logical, if TRUE (and x contains more than two elements) produces pairwise plots.

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)) 

overlapping documentation built on Dec. 28, 2022, 2:13 a.m.