我正在尝试从以下数据(最后是数据帧的dput)创建一个带有errorbar的图。我想为每个"loc“的"est A”和"est B“变量创建errorbar,但我找不到正确的方法来熔化/转换数据,以便每个"loc”都有两行和几列。0.26 0.11 0.60B B 0.03C B
ggplot(test,aes(x=Loc,y=value,color=est))+geom_point()+geom_errorbar
实现这一点的方法似乎是使用:+ geom_errorbar(),这在R和ggplot2中非常简单:geom_errorbar(ymin = Length - yerr, ymax = Length +但是,我还不能让它在python中使用plotnine,而且似乎也没有任何使用errorbar的代码示例。 Here is the documentation on the function。