有没有可能按两列分组呢? 这样就画出了横积
通过 geom_point()
和 geom_smooth()
?
例如:
frame <- data.frame(
series <- rep(c('a', 'b'), 6),
sample <- rep(c('glass','water', 'metal'), 4),
data <- c(1:12))
ggplot(frame, aes()) # ...
Such that the points 6
and 12
share a group, but not with 3
.