介绍 柱状图、箱线图和棒棒图组合 加载R包 # Library library(ggplot2) library(dplyr) library(forcats) 读取数据 data <- data.frame( name=c("north","south","south-east","north-west","south-west","north-east","west","east"), val=sample(seq(1,10), 8 ) ) head(data) 画图 # Reorder