我试图用 ggplot2 绘制一系列值和误差线,但它们没有显示。
我尝试改变比例和误差条宽度,但这没有用
这是我的代码
plot5 <- ggplot(alpha_cDNA, aes(x = cDNA, y = ymid, colour = mark)) + geom_point() +
geom_errorbar(aes(ymin = ymin, ymax = ymax), width = 0.2) + theme(axis.text.x = element_text(size = 12)) +
theme(axis.text.y = element_text(size =12)) + scale_color_manual(values = c("chartreuse4", "aquamarine4", "steelblue4", "orchid4", "burlywood4", "gold4", "darkolivegreen4"))
Run Code Online (Sandbox Code Playgroud)
问题是误差条结束(应该是宽度 0.2)只是不显示。我以前从未遇到过这个问题
