Skip to content

Commit

Permalink
Fixing misnamed panels for facet_wrap (#6082)
Browse files Browse the repository at this point in the history
See #6082

PR suggested by @teunbrand
  • Loading branch information
nicholasdavies authored Oct 14, 2024
1 parent ddd207e commit 020432a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/facet-.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ Facet <- ggproto("Facet", NULL,
# Set panel names
table$layout$name <- paste(
"panel",
rep(seq_len(dim[2]), dim[1]),
rep(seq_len(dim[1]), each = dim[2]),
rep(seq_len(dim[2]), each = dim[1]),
rep(seq_len(dim[1]), dim[2]),
sep = "-"
)
)

# Add spacing between panels
spacing <- lapply(
Expand Down

0 comments on commit 020432a

Please sign in to comment.