Skip to content

Commit 5e62f0c

Browse files
Fixing misnamed panels for facet_wrap (#6082) (#6136)
* Fixing misnamed panels for facet_wrap (#6082) See #6082 PR suggested by @teunbrand * Extra spaces crept in, removed
1 parent ddd207e commit 5e62f0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/facet-.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ Facet <- ggproto("Facet", NULL,
237237
# Set panel names
238238
table$layout$name <- paste(
239239
"panel",
240-
rep(seq_len(dim[2]), dim[1]),
241-
rep(seq_len(dim[1]), each = dim[2]),
240+
rep(seq_len(dim[2]), each = dim[1]),
241+
rep(seq_len(dim[1]), dim[2]),
242242
sep = "-"
243243
)
244244

0 commit comments

Comments
 (0)