plot.sentopicmodel {sentopics} | R Documentation |
Plot a topic model using Plotly
Description
Summarize and plot a sentopics model using a sunburst chart from the plotly::plotly library.
Usage
## S3 method for class 'sentopicmodel'
plot(x, nWords = 15, layers = 3, sort = FALSE, ...)
Arguments
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 |
Value
A plotly
sunburst chart.
See Also
Examples
lda <- LDA(ECB_press_conferences_tokens)
lda <- fit(lda, 100)
plot(lda, nWords = 5)
# only displays the topic proportions
plot(lda, layers = 1)
[Package sentopics version 0.7.3 Index]