sentiment_plot: Sentiment Plot Function

Description Usage Arguments Value

View source: R/remoodji.R

Description

Generates a plot to show the top n sentiment words in the input text file.

Usage

1
sentiment_plot(text, sentiment_input = "joy", width = 10, height = 10)

Arguments

text

string: the input text for sentiment analysis

sentiment_input

string (optional): the sentiment that the analysis focuses on. Defaults to "happy".

width

integer (optional): the width of the output plot. Defaults to 10.

height

integer (optional): the height of the output plot. Defaults to 10.

Value

graph: a plot that shows the top n sentiment words of the input text file


UBC-MDS/remoodji documentation built on March 30, 2021, 12:02 p.m.