ggplot(data=Galton,aes(x=father,y=height)) +
geom_point()+aes(colour=mother)+facet_wrap(~sex,ncol=4) +
stat_smooth(method=loess)
Relationship between the heights of the father and their offspring. Color is based on mother’s height and panels are broken apart by sex of child.