Generates a geom_jitter plot of each post in a dataset with sentiment on the y axis and a given time period on the x axis. Also fits a simple linear model to visualise the overl trend

valence_over_time(
 df,
 datetime = date,
 sentiment = ave_sentiment
)

Arguments

df

A dataframe.

datetime

The variable containing the date/time data.

sentiment

The variable containing the valence scores

Value

A plot visualising sentiment over time

Examples

valence_over_time(valence_df, datetime = date, sentiment = ave_sentiment)
#> `geom_smooth()` using formula 'y ~ x'