Description Usage Arguments Details Examples
Jitter adds random uniform offsets to avoid overplotting.
1 | geometry_jitter(geom, x = NULL, y = NULL)
|
geom |
A geometry data frame. |
x,y |
amount to jitter in x and y directions. In most cases, defaults to 40% of the resolution of the data. |
Jittering differs a little depending on the underlying geometry:
Jitters both x and y.
Jitters y1 & y2 by same amount
Jitters x1 & x2, and y1 & y2 by same amount - the height and width stay the same.
1 2 3 4 5 6 7 8 9 10 | scatter_ex %>%
plot() %>%
geometry_jitter() %>%
plot(add = TRUE, col = "red")
# Can override amount of jitter
scatter_ex %>%
plot() %>%
geometry_jitter(0.2, 0.2) %>%
plot(add = TRUE, col = "red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.