Closed smouksassi closed 6 months ago
Thanks for the report Samer!
This behaviour is on purpose, which is described in the details of ?facet_nested()
:
Unlike facet_grid(), this function only automatically expands missing variables when they have no variables in that direction, to allow for unnested variables. It still requires at least one layer to have all faceting variables.
Motivation for this decision is found in the vignette.
If you do not want this behaviour, you can use facet_grid2(..., strip = strip_nested())
to achieve a plot more closely resembling the facet_grid()
behaviour.
The issue was also reported in #116 and my viewpoint (it is intended and it will not change) remains the same.
thank you this is now much clearer facet_grid2(..., strip = strip_nested()) does the trick
I expected faced nested to repeat the vlines in all panels since the faceting variable is missing i.e same behaviour of facet_grid
Created on 2024-01-03 with reprex v2.0.2