📜  如何在 ggplot 中重新排序箱线图 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:15.636000             🧑  作者: Mango

代码示例1
flights_speed %>%
  ggplot(aes(x=reorder(carrier,speed,na.rm = TRUE), y=speed)) +
  geom_boxplot() +
  labs(y="Speed", x="Carrier", 
       subtitle="Reordering Boxplots after removing missing data")