Here is the explanation of the preceding code:
- x, y, data, kind, and hue parameters are exactly the same as what we have seen in the previous recipe
- row='weekend' specifies that, for each unique value of weekend, plot a separate axes along the rows of the figure
- col='Promotion' specifies that for each unique value of Promotion, plot a separate axes along the columns of the figure
- When both row and col variables are specified, it plots the grid with a combination of both
The resulting figure looks like the following:
For the second figure, we first define a derived variable, Day, to store the day of the month value for each ...