plot.sentopicmodel | R Documentation |
Summarize and plot a sentopics model using a sunburst chart from the plotly::plotly library.
## S3 method for class 'sentopicmodel'
plot(x, nWords = 15, layers = 3, sort = FALSE, ...)
x |
a model created from the |
nWords |
the number of words per topic/sentiment to display in the outer layer of the plot |
layers |
specifies the number of layers for the sunburst chart. This
will restrict the output to the |
sort |
if |
... |
not used |
A plotly
sunburst chart.
topWords()
LDAvis()
lda <- LDA(ECB_press_conferences_tokens)
lda <- fit(lda, 100)
plot(lda, nWords = 5)
# only displays the topic proportions
plot(lda, layers = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.