Skip to content
Prev 157185 / 398506 Next

Dot plot - equivalent of MINITAB

I think the problem is that what you describe is not what some  
people, R folks included, refer to as "dotplot", though I suppose  
wikipedia as well as some other top google links seem to agree with  
you and minitab. What you describe I think can be obtained with  
something like:

x<- c(6,6,4,4,4,4,2,2,2,2,2,10)
cnt <- table(x)
xs <- rep(as.numeric(names(cnt)), cnt)
ys <- do.call("c", sapply(cnt, function(x) 1:x))
plot(xs,ys, pch=19, ylim=c(0,10))

The R-dotplot you can think of, if you want, as a replacement of a  
barchart, which replaces the entire bar with a single dot where the  
bar would end. It can also be used when the scale you are using has  
nothing to do with counts, and doesn't even have to start from 0. But  
I am far from an expert, and I am sure/hope a bunch of people will  
jump in to correct me.

There are surely other descriptions of dotplots, but you could start  
with these:

http://www.processtrends.com/pg_charts_dot_plots.htm
http://www.b-eye-network.com/view/2468

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
On Sep 25, 2008, at 3:51 PM, kerfuffle wrote: