plot.disclapmixfit: Plot a disclapmixfit

View source: R/helper.R

plot.disclapmixfitR Documentation

Plot a disclapmixfit

Description

Plot a disclapmixfit object.

Usage

## S3 method for class 'disclapmixfit'
plot(x, which = 1L, clusdist = clusterdist(x), ...)

Arguments

x

a disclapmixfit object, usually from a result of a call to disclapmix.

which

What plot to make. 1L = clusters and their distances.

clusdist

To use previously computed cluster distances to avoid doing the same computations twice.

...

not used

Value

A data frame with discrete Laplace distributions for each cluster and locus. Side effect: A plot.

See Also

disclapmix disclapmixfit predict.disclapmixfit print.disclapmixfit simulate.disclapmixfit summary.disclapmixfit

Examples


data(danes)
db <- as.matrix(danes[rep(1:nrow(danes), danes$n), 1:(ncol(danes)-1)])
fit <- disclapmix(db, clusters = 4L)
plot(fit)


mikldk/disclapmix documentation built on Aug. 22, 2023, 10:56 a.m.