Copy+paste from orig. github repo

orig github repo: user "bobthecat" (a biostatician?), repo "codebox", see 
https://github.com/bobthecat/codebox/blob/master/table.graph.r