Skip to content

Commit 1cacb48

Browse files
committed
take the first match
1 parent d10b12a commit 1cacb48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/subplots.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ subplot <- function(..., nrows = 1, widths = NULL, heights = NULL, margin = 0.02
226226
obj[[ref]] <- obj[[ref]] %||% ref_default
227227
if (identical(obj[[ref]], "paper")) return(obj)
228228
refIdx <- match(obj[[ref]], axisMap)
229-
if (!is.na(refIdx)) obj[[ref]] <- names(axisMap)[refIdx]
229+
if (!is.na(refIdx)) obj[[ref]] <- names(axisMap)[refIdx][1]
230230
obj
231231
}
232232
annotations[[i]] <- lapply(annotations[[i]], bump_axis_ref)

0 commit comments

Comments
 (0)