1

I am trying to create a dotplot for some sampling distributions. I have created one for the medians of random samples of a uniform distribution. However the chart is getting truncated erroneously at the top. I have tried to reset with a ylim vector to no avail.

B <- replicate(500,median(sample(c(0:9),20,replace=T)))
stripchart(B, method="stack",pch=16,offset =0.5,at=0)

dotplot

Any suggestions?

1 Answers1

-1

I could not make it work using stripchart and I don't know why. I hope barplot delivers what you need:

barplot(table(B))

Hopefully you can work with that.

Christoph
  • 6,841
  • 4
  • 37
  • 89