<- worldbankdata |>
a1 ggplot(aes(x=Income, y=Electricity)) +
geom_jitter() + ggtitle("a1: geom_jitter")
<- worldbankdata |>
a2 ggplot(aes(x=Income, y=Electricity)) +
geom_point() + ggtitle("a1: geom_point")
| a2 a1
12 geom_j
12.1 geom_jitter
Package
ggplot2 (Wickham 2016)
Description
Adds a small amount of random variation to the location of each point, horizontally and/or vertically.
See also
Example
Wickham, Hadley. 2016. Ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. https://ggplot2.tidyverse.org.