histograms: R example code

* Adds R example code.  (closes #433) (PR #470)