| Title: | Data and 'Shiny' Application for the Show 'SouthPark' |
| Version: | 1.0.0 |
| 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. |
| License: | MIT + file LICENSE |
| URL: | https://github.com/Amalan-ConStat/SouthParkRshiny,https://amalan-con-stat.shinyapps.io/SouthParkRshiny/ |
| BugReports: | https://github.com/Amalan-ConStat/SouthParkRshiny/issues |
| Depends: | R (≥ 2.10) |
| Imports: | box, bslib, config (≥ 0.3.2), ggplot2, ggpubr, golem (≥ 0.4.1), kableExtra, knitr, shiny (≥ 1.8.0), shinydashboard |
| Suggests: | gridlayout |
| Additional_repositories: | https://amalan-constat.github.io/drat/ |
| Encoding: | UTF-8 |
| LazyData: | true |
| LazyDataCompression: | xz |
| RoxygenNote: | 7.3.1 |
| NeedsCompilation: | no |
| Packaged: | 2024-03-09 03:24:41 UTC; amala |
| Author: | Amalan Mahendran [cre, aut] |
| Maintainer: | Amalan Mahendran <amalan0595@gmail.com> |
| Repository: | CRAN |
| Date/Publication: | 2024-03-09 11:10:08 UTC |
Basic plots
Description
Average rating and votes summarised in different ways.
Usage
Basic_plots
Format
A list with
1Number of Votes vs Average Rating
2Number of episodes in seasons and their runtime
3Average 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
1Three word pharases over seasons
2Four word pharases over seasons
3Three word pharases over main characters
4Four word pharases over main characters
5Three word pharases over supporting characters
6Four 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
1Rating for all seasons and episodes
2Votes for all seasons and episodes
Examples
length(Ratings_Votes_plots)
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
1positive words from bing over seasons
2negative words from bing over seasons
3positive words from nrc over seasons
4negative words from nrc over seasons
5positive words from loughran over seasons
6negative 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
1positive words from bing over seasons
2negative words from bing over seasons
3positive words from nrc over seasons
4negative words from nrc over seasons
5positive words from loughran over seasons
6negative 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
1positive words from bing over seasons
2negative words from bing over seasons
3positive words from nrc over seasons
4negative words from nrc over seasons
5positive words from loughran over seasons
6negative 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
SeasonSeason Number
EpisodeEpisode Number
PrimaryTitleprimary title of the episode
OriginalTitleoriginal title of the episode
Yearyear the episode was aired
Runtimeruntime in minutes
AverageRatingaverage rating out of 10
NumberOfVotesnumber 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
SeasonSeason Number
EpisodeEpisode Number
CharacterCharacter Name
LineThe 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
Triviatrivial information labels
Valuesdata 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
1Swear words in general
2Swear words for main characters
3Swear words for supporting characters
Examples
length(Swear_Words_plots)
Run the Shiny Application
Description
Run the Shiny Application
Usage
run_app(...)
Arguments
... |
list of golem options. |
Value
used for side effects