How to order facets by variable in ggplot2?

后端 未结 0 815
死守一世寂寞
死守一世寂寞 2020-11-30 17:18

Suppose I have a graph like this:

library(tidyverse)

df <- mtcars %>%
  group_by(cyl, gear) %>%
  summarise(hp_mean = mean(hp))

  ggplot(df, aes(x          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题