HEX-1829 hist in R