ggplot2, facet_grid, free scales?

前端 未结 4 1986
广开言路
广开言路 2020-11-27 18:11

In the following example, how do I get the y-axis limits to scale according to the data in each panel?

mt <- ggplot(mtcars, aes(mpg, wt, colour = factor(c         


        
4条回答
  •  清歌不尽
    2020-11-27 18:59

    You can't. See here

    You can use facet_wrap instead, which will 'free' both axes

提交回复
热议问题