When I run the hist() function with some value for the "breaks" parameter, the function does not return the correct number of bins.
E.g., in the below code, I want to divide the data into 25 bins, but hist() splits the data into 20 bins. How can I get the correct number of bins using the hist() function?
> rv <- runif(1000)
> hs <- hist(rv, breaks = 25, plot = FALSE)