An R and J script that plots the histogram of the first digits of all of a researcher's publication citations, and compares it to the Benford's Law log distribution.
A csv file of publications was generated for each researcher using the Publish or Perish application, a Windows interface to Google Scholar.
In R:
source('run.R')
On the command line:
Rscript run.R
or
R CMD BATCH run.R
J:
load'benford.ijs'
The R script saves plot of 6 distributions as benford_citations_R.png
: