如中所解释的?arrow
, 您可以使用length
and angle
更改标准箭头的外观。和lwd
你可以改变粗细,就像lines()中一样。还lty
有效,尽管结果通常不太好。
一整套例子:
plot(c(0:10),type="n")
arrows(1,0,2,1,length=0.2,angle=20)
arrows(1,1,2,2,length=0.1,angle=40,lwd=3)
invisible(mapply(arrows,
rep(c(3,6),each=4),rep(3:6,2),
rep(c(5,8),each=4),rep(5:8,2),
angle=seq(10,40,length.out=8),
length=rep(seq(0.1,0.3,length.out=4),2),
lwd=rep(1:4,each=2))
)