Description Usage Arguments Details Author(s) See Also Examples
plot.mixer
can display five kinds of figure: model selection criterion curve, the adjacency matrix map, the degree distribution histogram, the
connectivity matrix graph and the adjacency matrix graph. By default the four
first plots are displayed.
1 2 3 |
x |
a mixer object (output of the mixer function). |
q |
the q-class model to display. By default, the |
frame |
a vector of frame numbers to display (5 kinds of plots, see details section for more). |
classes |
an external classification used for frame 4 (pie chart):
vector as |
classes.col |
a vector of user colors used to identify the classes. |
quantile.val |
filters the connectivity matrix values
(Pis) in frame 4. Display the upper part (specified by
|
... |
further graphical arguments. |
Frame values:
criterion (ICL or ILvb) versus the number of classes
(see mixer
).
adjacency matrix reorganized according to the estimated partition for
a given number of classes q
.
degree distribution (histogram) and theoretical degree
distribution (blue curve) computed from the q-class model
parameters (alphas
, Pis
).
matrix connectivity between classes (Pis) given a number of
classes q
. The thickest edges
identify the highest values of the connectivity probabilities
and the largest nodes point out the most populated classes.
Providing external classes (see classes argument) each node displays a pie chart pointing out the classification relevance.
graph display of the adjacency matrix.
C. Ambroise, G. Grasseau
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #
# Simple example : display the 4 frames for the best class number estimation
#
g <- graph.affiliation(n=100,c(1/3,1/3,1/3),0.8,0.2)
xout <- mixer(g$x,qmin=2,qmax=6)
## Not run: plot(xout)
#
# Display the same for 4 classes with no filtering
#
## Not run: plot(xout, q=4, quantile.val=0)
#
# Display a pie chart for 4 classes
#
data(blog)
xout <- mixer(x=blog$links,qmin=2,qmax=12)
# Unconnected nodes have been removed by mixer.
# xout$map contains the mapping from connected nodes to the whole set
ext.classes <- blog$politicalParty
## Not run: plot( xout, frame=4, classes=ext.classes )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.