Plot the matrices corresponding to a Multiplex Network
plotMyMultiplexMatrix(listSBM, memberships = NULL, plotOptions = list())
listSBM
: : a list of objects representing the multiplex network (see)memberships
: : a list of length equal to the number of Functional Groups providing the clusterings inside each group.plotOptions
: : a list containing the options. See details.a ggplot object corresponding to the plot
plotOptions is a list containing the following items
Nnodes <- c(40,30) blockProp <- list(c(.4,.6),c(0.5,0.5)) nbLayers <- 2 connectParam <- list(list(mean=matrix(rbeta(4,.5,.5),2,2)),list(mean=matrix(rexp(4,.5),2,2))) names(connectParam) <- c('Read','Score') model <- c("bernoulli","poisson") type <- "bipartite" mySampleMultiplexSBM <- sampleMultiplexSBM( nbNodes = Nnodes, blockProp = blockProp, nbLayers = nbLayers, connectParam = connectParam, model=model, dimLabels = c('readers','books'), type=type) listNet <- mySampleMultiplexSBM$listSBM names(listNet) <- c("Read","Affinity") plotMyMultiplexMatrix(listNet,plotOptions=list(legend = TRUE))