Plot Histogram with Points Instead of Bars
Here is a question for R-users. I am interested in drawing a histogram with points stacked up, instead of a bar. For example if the data is (1,1,2,1,2,3,3,3,4,4), then I would like to see three points stacked up at 1, 2 points stacked up at 2 and so on. What is the best way to do this in R? Solomon Choe Greg Snow's TeachingDemos package contains a dots(x, ...) function which seems to fit your need: dots( round( rnorm(50, 10,3) ) ) You can do this yourself pretty quickly: x <- c(1,1,2,1,2,3,3,3,4,4) plot(sort(x), sequence(table(x))) The simplest answer I know is this: x <- c(1,1,2,1,2,3,3,3,4,4