R 为PDF下的区域着色
我已经使用以下方法绘制了威布尔分布W(2,3): 我只想给(4,10)之间的区域加上阴影。我该怎么做呢R 为PDF下的区域着色,r,plot,R,Plot,我已经使用以下方法绘制了威布尔分布W(2,3): 我只想给(4,10)之间的区域加上阴影。我该怎么做呢 xx2=seq(from=4,to=10,length.out=1000) yy2=c(Weibull(xx2),0) xx2=c(xx2,4) plot(xx,xx1,type="l") polygon(xx2, yy2, col = "red", border = NA) xx2=seq(from=4,to=10,length.out=1000) yy2=c(Weibull(xx2)
xx2=seq(from=4,to=10,length.out=1000)
yy2=c(Weibull(xx2),0)
xx2=c(xx2,4)
plot(xx,xx1,type="l")
polygon(xx2, yy2, col = "red", border = NA)
xx2=seq(from=4,to=10,length.out=1000)
yy2=c(Weibull(xx2),0)
xx2=c(xx2,4)
plot(xx,xx1,type="l")
polygon(xx2, yy2, col = "red", border = NA)