plot,BIKM1_LBM_Poisson-method {bikm1} | R Documentation |
Plot method for a BIKM1_LBM_Poisson
object
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
## S4 method for signature 'BIKM1_LBM_Poisson'
plot(x, y, ...)
Arguments
x |
an object of class |
y |
a list specifying
|
... |
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
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)
[Package bikm1 version 1.1.0 Index]