Replaced old stats functions with a single function that returns a data.frame
Merge pull request #4 from andrewjlm/df-ggplot2

Replaced old stats functions with a single function that returns a df. Resolve #2