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.
I have hypothetical data, as I would not like to share my original data.
data <- c(1,1.2,40,1000,36.66,400.55,100,99,2,1500,333.45,25,125.66,141,5,87,123.2,61,93,85,40,205,208.9)