plotConfmat {Perc} | R Documentation |
generate heat map for a matrix
Description
plotConfmat
generate heat map for a matrix or a win-loss probability matrix
Usage
plotConfmat(conf.mat, ordering = NA, labels = FALSE, ...)
Arguments
conf.mat |
an N-by-N matrix. Either a conflict matrix or
a win-loss probability matrix (the second element from |
ordering |
a reordering of the rows/columns, specified by a permutation of 1:N |
labels |
if TRUE, displaying the agent names as
specified in the |
... |
Further argument may be supplied and processed by |
Value
A heatmap
See Also
Examples
# convert an edgelist to conflict matrix
confmatrix <- as.conflictmat(sampleEdgelist)
# find win-loss probability matrix
perm2 <- conductance(confmatrix, 2)
# plotting
plotConfmat(perm2$p.hat)
[Package Perc version 0.1.6 Index]