Facets
Facets are a way of splitting a plot into multiple panels based on the values of a variable.
grid and wrapped
when to use this vs aesthetics?
Exercises
- divides in to
bins
- no. cyclinders increase -> bigger engines, more fuel consumption
The
scales
argument controls whether the axes in the facets are fixed or allowed to vary independently.Options:
fixed
(default): All facets share the same x and y-axis scales.free_x
: Each facet has its own x-axis scale.free_y
: Each facet has its own y-axis scale.free
: Each facet has its own x and y-axis scales.use when scale are different/the same