作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有包含变量的数据框,它是conf。间隔
time x x.upper x.lower
1 1.00 0.91 1.11
2 1.03 0.92 1.13
3 1.03 0.95 1.17
2 1.06 0.90 1.13
ggplot
它:
library(ggplot2)
ggplot(data = df,aes(time,x))+
geom_line(aes(y = x.upper), colour = 'red') +
geom_line(aes(y = x.lower), colour = 'blue')+
geom_line()
geom_smooth()
函数。我该怎么做?
最佳答案
geom_ribbon
正是您需要的
ggplot(data = df,aes(time,x))+
geom_ribbon(aes(x=time, ymax=x.upper, ymin=x.lower), fill="pink", alpha=.5) +
geom_line(aes(y = x.upper), colour = 'red') +
geom_line(aes(y = x.lower), colour = 'blue')+
geom_line()
关于r - 如何突出显示两行之间的区域? ggplot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24419574/
有没有一种方法可以“标记”对象的属性,使它们在反射中“突出”? 例如: class A { int aa, b; string s1, s2; public int AA
我是一名优秀的程序员,十分优秀!