Skip to content

Commit 28c724f

Browse files
committed
fix trace processing if number of subplots >= 10
1 parent ae6b073 commit 28c724f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/layers2traces.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ layers2traces <- function(data, prestats_data, layout, p) {
6060
nms <- names(trs)
6161
# ignore "non-discrete" scales that we've split on
6262
for (w in seq_len(sum(names(d) %in% c("PANEL", split_on(d))))) {
63-
nms <- sub("^[^@%&]@%&", "", nms)
63+
nms <- sub("^.+@%&", "", nms)
6464
}
6565
nms <- strsplit(nms, "@%&")
6666
nms <- vapply(nms, function(x) {

0 commit comments

Comments
 (0)