Stripchart to ggplot2

Any idea how to draw striptease in ggplot2? An example in R base will be inserted below.

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

      

enter image description here

+3


source to share


1 answer


You can use geom_dotplot

:

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

      



enter image description here

+4


source







All Articles