I'm trying to plot some data on a histogram using R so I can make a Chi Squared Test on it later. I was told to use some specific breaks on the histogram, but when I use it, I get the error on the title. Here's the code:
aux = hist(x, freq=F, col='lightblue', breaks=c(50, 150, 200, 1500))
hist(x, nclass=15, freq=F, col='lightblue')
The length of the dataset is 59 and the maximum value is 1286.137. I've already done this before without problem, with another dataset en different breaks, so I don't know what could be causing the error. Any ideas?