Package 'SouthParkRshiny'

Title: Data and 'Shiny' Application for the Show 'SouthPark'
Description: Ratings, votes, swear words and sentiments are analysed for the show 'SouthPark' through a 'Shiny' application after web scraping from 'IMDB' and the website <https://southpark.fandom.com/wiki/South_Park_Archives>.
Authors: Amalan Mahendran [cre, aut]
Maintainer: Amalan Mahendran <[email protected]>
License: MIT + file LICENSE
Version: 1.0.0
Built: 2024-07-08 02:18:46 UTC
Source: https://github.com/Amalan-ConStat/SouthParkRshiny

Help Index


Basic plots

Description

Average rating and votes summarised in different ways.

Usage

Basic_plots

Format

A list with

1

Number of Votes vs Average Rating

2

Number of episodes in seasons and their runtime

3

Average ratings and votes for each season

Examples

length(Basic_plots)

N Grams plots

Description

Three and four word phrases common among seasons, main characters and supporting characters are summarised through a plot here, from the script data.

Usage

N_Grams_plots

Format

A list with

1

Three word pharases over seasons

2

Four word pharases over seasons

3

Three word pharases over main characters

4

Four word pharases over main characters

5

Three word pharases over supporting characters

6

Four word pharases over supporting characters

Examples

length(N_Grams_plots)

Ratings Votes plots

Description

Detailed plots for ratings and votes from the IMDB data.

Usage

Ratings_Votes_plots

Format

A list with

1

Rating for all seasons and episodes

2

Votes for all seasons and episodes

Examples

length(Ratings_Votes_plots)

Run the Shiny Application

Description

Run the Shiny Application

Usage

run_app(...)

Arguments

...

list of golem options.

Value

used for side effects


Sentiment Four plots

Description

Number of positive and negative words based on bing,nrc,loughran among the main four characters per season are summarised through a plot here, from the script data.

Usage

Sentiment_Four_plots

Format

A list with

1

positive words from bing over seasons

2

negative words from bing over seasons

3

positive words from nrc over seasons

4

negative words from nrc over seasons

5

positive words from loughran over seasons

6

negative words from loughran over seasons

Examples

length(Sentiment_Four_plots)

Sentiment General plots

Description

Number of positive and negative words based on bing,nrc,loughran among the seasons are summarised through a plot here, from the script data.

Usage

Sentiment_General_plots

Format

A list with

1

positive words from bing over seasons

2

negative words from bing over seasons

3

positive words from nrc over seasons

4

negative words from nrc over seasons

5

positive words from loughran over seasons

6

negative words from loughran over seasons

Examples

length(Sentiment_General_plots)

Sentiment Support plots

Description

Number of positive and negative words based on bing,nrc,loughran among the supporting characters per season are summarised through a plot here, from the script data.

Usage

Sentiment_Support_plots

Format

A list with

1

positive words from bing over seasons

2

negative words from bing over seasons

3

positive words from nrc over seasons

4

negative words from nrc over seasons

5

positive words from loughran over seasons

6

negative words from loughran over seasons

Examples

length(Sentiment_Support_plots)

SouthPark IMDB Data Data from the IMDB website are extracted for the show. The data consists of season, episode, primarytitle, originaltitle, year, runtime(in minutes), averagerating and number of votes.

Description

SouthPark IMDB Data Data from the IMDB website are extracted for the show. The data consists of season, episode, primarytitle, originaltitle, year, runtime(in minutes), averagerating and number of votes.

Usage

SouthPark_IMDB_Data

Format

A dataframe with

Season

Season Number

Episode

Episode Number

PrimaryTitle

primary title of the episode

OriginalTitle

original title of the episode

Year

year the episode was aired

Runtime

runtime in minutes

AverageRating

average rating out of 10

NumberOfVotes

number of votes recorded

Examples

sort(unique(SouthPark_IMDB_Data$Season)) # the seasons of the show
mean(SouthPark_IMDB_Data$AverageRating) # the average rating of the show
sum(SouthPark_IMDB_Data$NumberOfVotes) # sum of the number of votes

SouthPark Script Data

Description

Data for the scripts scraped from the website are stored here. The data consists of season, episode, character and line.

Usage

SouthPark_Script_Data

Format

A dataframe with

Season

Season Number

Episode

Episode Number

Character

Character Name

Line

The lines the character spoke

Examples

unique(SouthPark_Script_Data$Season) # the seasons of the show
unique(SouthPark_Script_Data$Character) |> length() # the unique characters in the show

SouthPark Summary

Description

Overall summary plot from the script data.

Usage

Southpark_Summary

Format

A dataframe with

Trivia

trivial information labels

Values

data for the trivial information


Swear words plots

Description

Swear word plots for main and supporting characters per seasons. Total number of words and unique words are summarised through plots.

Usage

Swear_Words_plots

Format

A list with

1

Swear words in general

2

Swear words for main characters

3

Swear words for supporting characters

Examples

length(Swear_Words_plots)