我正在尝试绘制值和错误条,这似乎是一项简单的任务。由于脚本相当长,我正在尝试将给出的代码限制在必要的数量。Error: Aesthetics must either be length one, or the same length as the dataProblemsTempdata数据帧中的所有矢量的长度为390。data.frame (TempDiff, Measurement.points, Ro
我想从ggplot2创建的网格对象中删除一个layer (在本例中是geom_ribbon的结果)。一旦它已经是对象的一部分,有没有方法可以删除它?+ geom_ribbon(aes(ymin=ymin, ymax=ymax), alpha=0.3) p# This overlays another ribbon on top
p + geom_ribbon(aes(