added code frequency for issue #3

Also added a requirement for ggplot2