knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Hoaxy visualizes the spread of claims and related fact checking online. A claim may be a fake news article, hoax, rumor, conspiracy theory, satire, or even an accurate report. Anyone can use Hoaxy to explore how claims spread across social media. You can select any matching fact-checking articles to observe how those spread as well.
# install.packages("remotes") remotes::install_github("news-r/hoaxy")
hx_articles - Get fake articles on a specific query. hx_tweets - Get tweets on specific articles.hx_edges - Get network of tweets on specific articles.hx_timeline - Get timeline of tweets on specific articles.hx_spreaders - Get top Twitter users.hx_top_articles - Get top articles.hx_latest_articles - Get latest fake news.Create a free account at rapidapi.com to create an API key.
hoaxy_key("xxXXxxXx")
Note that you can specify the RAPIDAPI_API_KEY key as an environment variable in your .Renviron for convenience.
Get fake articles.
library(hoaxy) (articles <- hx_articles("pizzagate"))
Get tweets on some of said articles.
(tweets <- hx_tweets(articles$id[1:5]))
Get network of tweets on articles.
(edges <- hx_edges(articles$id[1:5])) plot(edges)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.