Graphics Reference
In-Depth Information
plotting. To reduce the overplotting, we can jitter the line positions and make them slightly thin-
ner by specifying size ( Figure 5-29 ). This helps the viewer see the distribution more clearly:
ggplot(faithful, aes(x = eruptions, y = waiting)) + geom_point() +
geom_rug(position = "jitter" , size = .2 )
Figure 5-29. Marginal rug with thinner, jittered lines
Search WWH ::




Custom Search