plot-BIKM1_LBM_Poisson-method: Plot method for a 'BIKM1_LBM_Poisson' object

Description Usage Arguments Value Examples

Description

Produce respectively one plot of two-dimensional segmentation of a BIKM1_LBM_Poisson fit, an evolution of the criterion as a function of the numbers of rows and columns, and a boxplot of conditional posteriors for each row and column cluster.

Usage

1
2
## S4 method for signature 'BIKM1_LBM_Poisson'
plot(x, y, ...)

Arguments

x

an object of class BIKM1_LBM_Poisson.

y

a list specifying

x : contingency matrix of observations.

...

in the plot method, additional parameters (ignored)

Value

Two plots (initial matrix and block estimation) and two ggplot2 objects (conditional posterior in each cluster and the graph of chosen criterion values).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
require(bikm1)
J=200
K=120
h=3
l=2
theta=list()
theta$rho_h=1/h *matrix(1,h,1)
theta$tau_l=1/l *matrix(1,l,1)
theta$gamma_hl=matrix(c(1, 6,4, 1, 7, 1),ncol=2)
data=PoissonBlocRnd(J,K,theta)
res=BIKM1_LBM_Poisson(data$x,3,3,4,init_choice='random')
plot(res,data)

bikm1 documentation built on July 16, 2021, 9:08 a.m.