Skip to content

Commit 84496d0

Browse files
committed
fix #427
1 parent 7233419 commit 84496d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DESCRIPTION

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Suggests:
3636
dplyr,
3737
maps,
3838
ggthemes,
39+
GGally,
3940
testthat,
4041
knitr,
4142
devtools,

R/subplots.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ subplot <- function(..., nrows = 1, which_layout = "merge", margin = 0.02) {
7373
key <- with(p_info, paste0(geo, xaxis, yaxis, plot))
7474
p_info$key <- match(key, unique(key))
7575
# bump x/y axis anchors appropriately
76-
p_info$xaxis <- sub("x1", "x", paste0("x", p_info$key))
77-
p_info$yaxis <- sub("y1", "y", paste0("y", p_info$key))
76+
p_info$xaxis <- sub("^x1$", "x", paste0("x", p_info$key))
77+
p_info$yaxis <- sub("^y1$", "y", paste0("y", p_info$key))
7878
# Only do domain computations if they are _completely_ missing
7979
# (I don't think it makes sense to support partial specification of domains)
8080
if (all(is.na(with(p_info, c(xstart, xend, ystart, yend))))) {

0 commit comments

Comments
 (0)