Description Usage Arguments Value See Also Examples
View source: R/plot.conf.mat.R
plotConfmat
generate heat map for a matrix or a win-loss probability matrix
1 | plotConfmat(conf.mat, ordering = NA, labels = FALSE, ...)
|
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 |
A heatmap
1 2 3 4 5 6 | # convert an edgelist to conflict matrix
confmatrix <- as.conflictmat(sampleEdgelist)
# find win-loss probability matrix
perm2 <- conductance(confmatrix, 2)
# plotting
plotConfmat(perm2$p.hat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.