r - Horizontal lines in errorbars disappearing -
i'm having troubles errorbars in ggplot (r) similar this problem in python. horizontal errobars disappearing when using scale_y
function. can me find solution? data here.
my code is:
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))
thanks!
Comments
Post a Comment