Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jtlandis/ggside into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlandis committed Dec 9, 2023
2 parents 78eaf26 + 09dfac2 commit 930f6bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/plot-construction.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ update_ggside.ggplot <- function(object, ggside = NULL){
object$ggside$collapse <- ggside$collapse %||% object$ggside$collapse %||% NULL
fp <- object[['facet']]$params
col <- object$ggside$collapse
if (!is.null(fp$free) && !is.null(col) && any(.lgl <- vapply(fp$free, identity, logical(1)))) {
if (!is.null(fp$free) && !is.null(col) && inherits(object[['facet']], "FacetWrap") && any(.lgl <- vapply(fp$free, identity, logical(1)))) {
# if ggside collapse all - but scales is free - prioritize the scale and dont
# collapse
# i.e. facet_wrap(..., scales='free_y') + ggside(collapse="y") --> warning
Expand Down
2 changes: 1 addition & 1 deletion man/geom_xsidelabel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 930f6bf

Please sign in to comment.