Skip to content

Commit

Permalink
Fix #168 subsetting on the wrong dimension when fixing left outside s…
Browse files Browse the repository at this point in the history
…trip
  • Loading branch information
thomasp85 committed Jun 17, 2020
1 parent 8141e61 commit 22737e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot_patchwork.R
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ add_strips <- function(gt) {
gt <- gtable_add_cols(gt, unit(0, 'mm'), panel_loc$l - 1 - strip_pos)
} else if (strip_pos == 2) {
gt$widths[panel_loc$l - 1] <- sum(gt$widths[panel_loc$l - c(1, 2)])
gt <- gt[-(panel_loc$l - 2), ]
gt <- gt[, -(panel_loc$l - 2)]
}
gt
}
Expand Down

0 comments on commit 22737e0

Please sign in to comment.