Skip to content

Commit

Permalink
fix facet for continuous axes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 26, 2024
1 parent 9c524be commit f9507b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/layout-stack-composer.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ stack_composer_add.ggalign_plot <- function(plot, composer, design, ...,
# let `Align` to determine how to build the plot
align <- plot@align # `AlignProto` object
plot <- plot@plot
if (!align$free_facet) {
if (!align$free_facet && is_discrete_design(design)) {
if (nlevels(.subset2(design, "panel")) > 1L) {
facet <- switch_direction(
direction,
Expand Down

0 comments on commit f9507b4

Please sign in to comment.