Plot an adjacency or incidence Matrix
plotMyMatrix( Mat, dimLabels = c(row = "row", col = "col"), clustering = NULL, plotOptions = NULL )
Mat
: : a matrix representing the networkdimLabels
: : a vector of length 1 or 2 specifying the types of nodes in row and col (functional group) (Default is NULL
)clustering
: : a list of length 2 specifying a clustering on row and colplotOptions
: : a list providing options. See details below.a ggplot object corresponding to the plot
The list of parameters plotOptions
for the matrix plot is
M <- matrix(sample(c(0,1),900,replace=TRUE),30,30) plotMyMatrix(M, dimLabels = c('individulals'), plotOptions= list(legend = FALSE)) M2 <- matrix( rpois(800,10),40,20) plotMyMatrix(M2, dimLabels = c(row = 'reader',col = 'book'), plotOptions = list(legend = TRUE))