Create a citation report from journals of interest in web of science. Save the top 500 results or so as a text file. Open the text file (usually named "savedrecs.txt") and delete the header. Save it as "journal.csv" or similar in the sb directory.
From R, evaluate the write_sleeping_beauty and plotgraph functions.
sb <- write_sleeping_beauty("citations.csv", 20)
will return a dataframe that can be passed to plotgraph. It will also save a file named "data.csv" Open the sb.html file in your browser to see the d3.js visualization.
To make a plot from R, use:
gg <- plotgraph(sb,1,10)
This will return a ggplot object that highlights articles that went ten years with no citations. Adjust parameters to suit.
The d3.js visualization is based on this example by Mike Bostock. Lynn Cherny's code helped me understand how to adapt the original example and was helpfully commented. This stackoverflow question and answer was also helpful.
I also got valuable feedback from a conversation with PJ Trainor, Nabil Kashyap, and Rachel Buurma.
- Automate read procedure so that it doesn't require manual spreadsheet tweaking. Still have to delete small header.
- Regularize capitalization of titles.
- Clean and indent js code properly.