3
votes

Any idea how to draw stripchart in ggplot2? The example in base R is pasted below.

stripchart(iris$Sepal.Length, col = "red", method="stack")

enter image description here

1

1 Answers

5
votes

You can use geom_dotplot:

library(ggplot2)
ggplot(iris, aes(x = Sepal.Length)) +
  geom_dotplot()

enter image description here