Facetting
Another technique for displaying additional categorical variables on a plot
is facetting. Facetting creates tables of graphics by splitting the data into
subsets and displaying the same graph for each subset.
There are two types of facetting: grid and wrapped. Wrapped is the most
useful, so we’ll discuss it here, and you can learn about grid facetting later.
To facet a plot you simply add a facetting specification with facet wrap(),
which takes the name of a variable preceded by ˜.


雷达卡



京公网安备 11010802022788号







