How can I make a histogram in Rstudio with the frequency on the y-axis and on the x-axis pre-defined non-uniform intervals, for example: 0-50, 50-150, 150-500, 500-2000.