请问,有没有人知道如何去除x轴上的这条彩色线?数据框是dfp
。如何用ggplot2中的geom_density去除x轴上的彩色线?
Value Class
1 94.00 A
2 70.51 A
3 70.02 A
4 95.24 A
5 70.53 A
6 93.01 A
7 70.86 A
8 94.84 A
9 70.77 A
I'm使用此命令行来绘制:
ggplot(dfp, aes(na.omit(dfp$Value), color = na.omit(dfp$Class), alpha=0.3)) + geom_density(size=1.5)
重复的:https://stackoverflow.com/questions/21600754/ggplot2-and-geom-density-how-to-remove-baseline?rq=1 – Brian