FD.marginalplot {FlexDir}R Documentation

Marginal Plot of a Flexible Dirichlet

Description

Histogram of the observed marginal variable and estimated density function of the marginal variable of a fitted Flexible Dirichlet distribution.

Usage

FD.marginalplot(x, var, zoomed = T, showgrid = T, showdata = T)

Arguments

x

an object of class FDfitted, usually the result of FD.estimation.

var

position of the variable to be plotted.

zoomed

if TRUE, shows only the area where most of the density is concentrated. If FALSE, shows the whole range [0;1].

showgrid

if TRUE, shows the axis and the labels. If FALSE, only the graph is printed.

showdata

if TRUE, prints the histogram of the data. If FALSE, shows only the density function.

References

Ongaro, A. and Migliorati, S. (2013) A generalization of the Dirichlet distribution. Journal of Multivariate Analysis, 114, 412–426.

Migliorati, S., Ongaro, A. and Monti, G. S. (2016) A structured Dirichlet mixture model for compositional data: inferential and applicative issues. Statistics and Computing, doi:10.1007/s11222-016-9665-y.

See Also

FD.estimation, FD.ternaryplot, FD.rightplot

Examples

data <- FD.generate(n=20,a=c(12,7,15),p=c(0.3,0.4,0.3),t=8)
data
results <- FD.estimation(data, normalize=TRUE,iter.initial.SEM = 5,iter.final.EM = 10)
results
FD.marginalplot(results, var=2)
FD.marginalplot(results, var=2, zoomed=FALSE, showgrid=TRUE, showdata=FALSE)



[Package FlexDir version 1.0 Index]