Bar charts and Histograms using ggplot in R