cloud(stmobj, topic=NULL, type=c("model", "documents"), documents, thresh=.9, max.words=100, ...)
"model"
which is used by default is based on the probability of the word given the topic. The type "documents"
plots words within documents that have a topic proportion of higher than thresh
. This requires that the documents
argument also be specified.
stm
. This is only necessary if type="documents"
.
type="documents"
setting.
wordcloud
.
"model"
uses the topic-word model parameters. Thus it shows words weighted by their probability conditional that the word comes from a particular topic. With content covariates it averages over the values for all levels of the content covariate weighted by the empirical frequency in the dataset. The option "documents"
plots the words which appear in documents that have a topic proportion higher than thresh
. Thus "model"
gives a pure model based interpetation of the topic while "documents"
gives a picture of all the words in documents which are highly associated with the topic.
plot.STM