final.plot | R Documentation |
Graphical representation of the estimated densities along with the overlapping area.
final.plot( x, pairs = FALSE, boundaries = NULL )
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. |
It requires the package ggplot2
.
The output plot can be customized using the ggplot2
rules, see example below.
Massimiliano Pastore
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.