Skip to content

facet_grid() with scales="free" option won't free y-axis actually #1344

@yutannihilation

Description

@yutannihilation

When I use scales = "free" option in ggplot2, only X-axis is freed. Is this the intended result?

library(ggplot2)
mt <- ggplot(mtcars, aes(mpg, wt, colour = factor(cyl))) + geom_point()
mt + facet_grid(. ~ cyl, scales = "free")

plot

The option works fine with facet_wrap(); Both X-axis and Y-axis is freed as shown bellow. I expect this behaviour

mt + facet_wrap(~ cyl, scales = "free")

plot2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions