We start being given the following income distribution.
To draw a histogram of this, let’s assume that the frequency of getting any income within an interval is relatively equal.
Let’s exclude the last interval from the plot, since it has no upper limit.
Let’s plot out of 10,000 people, taking $5k income intervals.
Round as necessary to get whole numbers of people.
Let’s make a histogram by repeating the middle of each interval by the correct number of people.
incomes <- seq(from=2499.5,to=97499.5,by=5000)
number_people <- c(110,110,470,790,790,915,915,706,708,706,463,464,463,290,290,168,168,168,168,168)
hist(rep(incomes,times=number_people),
labels=FALSE,
xlab="Income",ylab="Number of people",
main="Income distribution modeled based on 10,000 people\nand breaking up larger intervals\ninto equal $5k income brackets",
breaks=seq(from=0,to=100000,by=5000))
We can clearly see that the data is right-skewed.