我在ggplot(R)中遇到类似于this problem in Python的错误栏的麻烦。
使用scale_y
功能时,我的水平曲线正在消失。你能帮我找一个解决方案吗? data is here。
我的代码是:
data_sac_ggplot <- ggplot(yeast_sac, aes(x=factor(day), y=mean_count, colour=yeastsample, group=c("low","high"))) +
scale_y_log10(breaks = trans_breaks("log10", function(x) 10^x), labels = trans_format("log10", math_format(10^.x))) +
geom_line(size=0.8) +
geom_point(size=2, shape=21, fill="white") +
theme_bw()
data_sac_ggplot + geom_errorbar(aes(ymin=mean_count-low, ymax=mean_count+high), width=0.1, position=pd)
data_sac_ggplot + scale_y_log10(breaks=c(1000,10000,100000,1000000,10000000,100000000,1000000000))
谢谢!