You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a problem with facet_grid when setting scales argument to "free".
I expected both, x and y, vary between the panels of the plot, but only one of them vary.
Here is the code to reproduce the bug (using the code from examples in documentation of facet_grid):
mt<- ggplot(mtcars, aes(mpg, wt, colour=factor(cyl))) +
geom_point()
# first - checking the fixed scales:mt+ facet_grid(vars(cyl), scales="fixed") # all fine# checking other 'free' options:mt+ facet_grid(vars(cyl), scales="free_y") # all finemt+ facet_grid(vars(cyl), scales="free_x") # not workingmt+ facet_grid(vars(cyl), scales="free") # not working
The text was updated successfully, but these errors were encountered:
Thank you, but I actually need the grid - in my work, I want to stratify by two variables and I would like to see varying x and y scales in each of the small panels.
this is not how facet_grid is designed as it is no longer a grid if you vary both
hard to help you without understanding fully what you are really trying to do.
I found a problem with
facet_grid
when settingscales
argument to"free"
.I expected both, x and y, vary between the panels of the plot, but only one of them vary.
Here is the code to reproduce the bug (using the code from examples in documentation of
facet_grid
):The text was updated successfully, but these errors were encountered: