Graphics Reference
In-Depth Information
Figure 11-1. Top: faceting horizontally by drv; bottom left: faceting vertically by cyl; bottom right:
faceting in both directions, with both variables
With facet_wrap() , the subplots are laid out horizontally and wrap around, like words on a
page, as in Figure 11-2 :
# Facet on class
# Note there is nothing before the tilde
p + facet_wrap( ~ class)
Search WWH ::




Custom Search