Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed typo - calculcations of shared Y axis was using X axes
  • Loading branch information
Oleh Khoma-ext authored and Oleh Khoma-ext committed Sep 8, 2020
commit e79ca018e2b19f871787a8dc3e027ef0c45de278
2 changes: 1 addition & 1 deletion R/subplots.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ subplot <- function(..., nrows = 1, widths = NULL, heights = NULL, margin = 0.02
if (length(unique(yAxisN)) > 1) {
warning("Must have a consistent number of axes per 'subplot' to share them.")
} else {
yAxisID <- rep(rep(seq_len(nrows * unique(xAxisN)), each = ncols, length.out = length(plots)), unique(yAxisN))
yAxisID <- rep(rep(seq_len(nrows * unique(yAxisN)), each = ncols, length.out = length(plots)), unique(yAxisN))
}
}
# current "axis" names
Expand Down