Description Usage Arguments Value Author(s) Examples
Plot the time series of sentiment, topics, etc
1 2 |
df |
A merged data frame |
date |
The name of the variable identifying the date |
v |
The name of the variable you want to plot |
w |
The name of the weighting variable when doing aggregation. If default to 1, then unweighted. |
stat |
A character specifying the method to aggregate the documents into date stat = c("sum", "mean") |
method |
A character specifying the method in ggsmooth |
span |
An numeric specifying the smoothness. The larger the smoother. Default to 0.1 |
display |
A logical. If TURE, then print the plot |
A ggplot
Jiacheng He
1 2 | plot_ts(merged, DOCUMENT_DATE, score, w = LENGTH, stat = "mean", span = 0.1,
ylab = "sentiment score")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.