amzn_terms_by_rating: Terms by Average Amazon Rating

View source: R/amzn_terms_by_rating.R

amzn_terms_by_ratingR Documentation

Terms by Average Amazon Rating

Description

Graph with the most frequent terms used and each term is positioned by the average of all reviews in which that term was used. The dashed line represents the average star rating for the product.

For example, if reviewers for a specific product used the word "perfect" 88 times and the average rating of the reviews using that term is 4.85, "perfect" will be plotted at (x = 88, y = 4.85).

Usage

amzn_terms_by_rating(data)

Arguments

data

Data frame created by GSPtext::get_reviews() or in the same format

Value

ggplot2 graph - scatterplot with overlaid text

Examples

## Not run: 
amzn_terms_by_rating(data),

# to save after running
amzn_terms_by_rating(data)
ggsave("directory/filename.png")
## End(Not run)

taylorgrant/GSPtext documentation built on April 15, 2023, 10:56 p.m.