1
這應該是非常簡單的問題! 我想提出與errorbars一個barplot,我用下面的代碼:重新調整y軸ggplot(geom_bar)
ggplot(data = bars, aes(x=c("1","2","3"), y=V2, fill = names)) +
geom_bar(position=position_dodge(), stat="identity", alpha = 0.7) +
geom_errorbar(aes(ymin=V1, ymax=V3))+
theme(legend.position='none')+
coord_cartesian(ylim=c(0,10))
不過,我有2個問題:1。 我想在酒吧爲y = 0 2開始。我不喜歡Y軸上的蜱蟲。我希望只有一位小數的數字少一些。
這是我的主線劇情:Bars with error bars