library(ggplot2)
test <- data.frame(
group = c(1, 2, 1, 2, 1, 2),
x = c(1, 2, 3, 4, 5, 6),
y = c(0, 0, 0, 0, 1, 1))
ggplot(test, aes(x = x, y = y)) +
geom_jitter(height = .2, width = 0) +
facet_wrap(. ~ group)
Is this the intended behavior? I expected jitter values to be independently generated across facets.
ggplot2 version 4.0.3
Example:
Is this the intended behavior? I expected jitter values to be independently generated across facets.