Graphics Reference
In-Depth Information
Figure 5-1. A basic scatter plot
Discussion
To use different shapes in a scatter plot, set shape . A common alternative to the default solid
circles (shape #16) is hollow ones (#21), as seen in Figure 5-2 (left):
ggplot(heightweight, aes(x = ageYear, y = heightIn)) + geom_point(shape = 21 )
Search WWH ::




Custom Search