
Last chance! 50% off unlimited learning
Sale ends in
Uses a topic correlation graph estimated by topicCorr
and the
igraph
package to plot a network where nodes are topics and edges
indicate a positive correlation.
# S3 method for topicCorr
plot(
x,
topics = NULL,
vlabels = NULL,
layout = NULL,
vertex.color = "green",
vertex.label.cex = 0.75,
vertex.label.color = "black",
vertex.size = NULL,
...
)
A topicCorr model object.
A vector of topics to include in the plot, defaults to all.
A character vector of labels for the vertices. Defaults to "Topic #"
The layout algorithm passed to the igraph
package. It
will choose layout.fruchterman.reingold
by default. Note that to
pass an alternate algorithm you should load the igraph
package first.
Color of the vertices.
Controls the size of the labels.
Controls the color of the labels.
Controls the sizes of the vertices, either NULL, a scalar or a vector of the same length as number of topics.
Additional parameters passed to plot.graph.adjacency
Essentially a thin wrapper around the plotting functionality in the
igraph
package. See package vignette for more details.
Csardi G, Nepusz T: The igraph software package for complex network research, InterJournal, Complex Systems 1695. 2006. http://igraph.sf.net
topicCorr
# \donttest{
#This function becomes more useful with larger numbers of topics.
#it is demonstrated here with a small model simply to show how the syntax works.
cormat <- topicCorr(gadarianFit)
plot(cormat)
# }
Run the code above in your browser using DataLab