Skip to contents

Creates a binned histogram showing count of reviews ranging from negative to positive sentiment score.

Usage

sentiment_score_plot(df, col)

Arguments

df,

data frame containing the reviews

col,

name of the column that contains the reviews

Value

plot object

Details

Provides the most frequent sentiment score and the corresponding percentage

Examples

df =  data.frame(text = c("I love cats","I love dogs"))
plot1 <- sentiment_score_plot(df, "text")