tests/testthat/_snaps/facet-layout.md

facet_wrap throws errors at bad layout specs

`ncol` must be a whole number or `NULL`, not an integer vector.
`ncol` must be a whole number larger than or equal to 1 or `NULL`, not the number -1.
`ncol` must be a whole number or `NULL`, not the number 1.5.
`nrow` must be a whole number or `NULL`, not an integer vector.
`nrow` must be a whole number larger than or equal to 1 or `NULL`, not the number -1.
`nrow` must be a whole number or `NULL`, not the number 1.5.
Cannot use `space = "free_x"` with custom `nrow` or `ncol`.
Need 3 panels, but together `nrow` and `ncol` only provide 1.
i Please increase `ncol` and/or `nrow`.
`facet_wrap()` can't use free scales with `coord_cartesian()` with a fixed `ratio` argument.

facet_grid throws errors at bad layout specs

`facet_grid()` can't use free scales with `coord_cartesian()` with a fixed `ratio` argument.
Free scales cannot be mixed with a fixed aspect ratio.

facet_wrap and facet_grid throws errors when using reserved words

"ROW" is not an allowed name for faceting variables.
i Change the name of your data columns to not be "PANEL", "ROW", "COL", "SCALE_X", or "SCALE_Y".
"ROW" and "PANEL" are not allowed names for faceting variables.
i Change the name of your data columns to not be "PANEL", "ROW", "COL", "SCALE_X", or "SCALE_Y".
"ROW" is not an allowed name for faceting variables.
i Change the name of your data columns to not be "PANEL", "ROW", "COL", "SCALE_X", or "SCALE_Y".


Try the ggplot2 package in your browser

Any scripts or data that you put into this service are public.

ggplot2 documentation built on Sept. 11, 2025, 9:10 a.m.