Skip to content

rinze/nygraph_twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This code replicates the plots used in this analysis by The New York Times using Python and R.

Blog post.

Just edit config-sample.py with the development credentials obtained for your account and rename it to config.py. Then:

  1. Run python get_data.py account_name to get data for that account.
  2. Run Rscript plot_data.R account_name to save a JPG file with the desired plot. Alternatively, you can start R in interactive mode and call the save_username_plot function to obtain a ggplot2 object.

About

Replicating The New York Times' Twitter bot analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published