Robert Justin Garcia 2021-05-03
A package extending the capability of RedditExtractoR by visualizing data by an entered keyword from user. This README is derived from Matt Kearney’s excellent rtweet documentation.
Install from GitHub with the following code:
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
devtools::install_github("robertjustin/TheRedditVisualizer")
This package requires the following packages RedditExtractoR
, ggplot2
,
This package connects to RedditExtractoR
directly to help
pull data from Reddit itself and help visualize it to see where data is
concentrated on Reddit, and how those numbers compare across subreddits.
Usage
There is one main funtion in the RedditVisualizer, and that is to
visualize Reddit Data from RedditExtractoR based on a search term. This
visualizes the top subreddits the search term appears in,
## load TheRedditVisualizer
library(TheRedditVisualizer)
## Enter query surrounded by quotation marks
TheRedditVisualizer("Bitcoin",1)
#> [1] Prints plot of Reddit posts containing keyword, X and Y axis are post_score
#and comment_score respectively
## If desired, change number of pages Reddit will search to increase data set
TheRedditVisualizer("Bitcoin", 7)
#> [1] Prints plot of Reddit posts containing keyword, X and Y axis are post_score
#and comment_score respectively
This function will be very helpful to those trying to quickly visualize
Reddit Data and see exactly where on Reddit the entered term is
trending, how its post score compares across subreddits, and really see
where certain information is concentrated across the reddit platform.
This started with me wanting to quickly see which stock tickers were
being talked about and where (subreddit) were they being talked about
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.