In past versions of ggplot, the code below would render these facets vertically, not horizontally. The help docs imply that historic dir = "v" behavior was maintained - it has not been. I've tried various combinations of dir and as.table params to restore prior behavior, and have not been able to.
Here is the code to reproduce the bug:
library(tidyverse)
mtcars %>%
ggplot(aes(x = mpg, y = carb)) +
geom_line() +
facet_wrap(vars(cyl), dir = "v")
Session info
R version 4.5.2 (2025-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Tahoe 26.4
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.1
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] lubridate_1.9.5 forcats_1.0.1 stringr_1.6.0 dplyr_1.2.1 purrr_1.2.1 readr_2.2.0 tidyr_1.3.2 tibble_3.3.1 ggplot2_4.0.2 tidyverse_2.0.0
loaded via a namespace (and not attached):
[1] vctrs_0.7.2 cli_3.6.5 rlang_1.2.0 stringi_1.8.7 generics_0.1.4 S7_0.2.1 labeling_0.4.3 glue_1.8.0 hms_1.1.4 scales_1.4.0
[11] grid_4.5.2 tzdb_0.5.0 lifecycle_1.0.5 compiler_4.5.2 RColorBrewer_1.1-3 timechange_0.4.0 pkgconfig_2.0.3 rstudioapi_0.18.0 farver_2.1.2 R6_2.6.1
[21] tidyselect_1.2.1 pillar_1.11.1 magrittr_2.0.5 tools_4.5.2 withr_3.0.2 gtable_0.3.6
In past versions of ggplot, the code below would render these facets vertically, not horizontally. The help docs imply that historic
dir = "v"behavior was maintained - it has not been. I've tried various combinations ofdirandas.tableparams to restore prior behavior, and have not been able to.Here is the code to reproduce the bug:
Session info