It is clear that some sort of reduction of the data is needed. One method would be to group values that are “close” to each other.
Frequencies
To create a histogram we need to create subintervals that cover the interval between minimum and maximum. A general rule of thumb is that there should be eight to 16 of these subintervals. Sorting the data makes this easier.
So, we need an interval that covers from 82 to 228. It would be nice if the numbers were sort of “friendly.” If we start at 75 and go to 250 using subintervals of length 25, we will use (250-75)/25 = 7 subintervals. For only having 20 observations, this seems pretty close to eight to 16.
Now we need to figure out how many observations are in each of the subintervals. We can use the table and cut functions to help us do this.
# Put the values into subintervalscut(htwt$Weight, breaks=seq(75,250,25), right=FALSE)