基本 R 中有没有一种方法可以通过旋转它们来修改 pch 点类型?我需要一个直角三角形(其底边平行于 y 轴)。
x <- runif(5)
y <- runif(5)
plot(x, y, pch = 17, cex = 2) #is there a parameter for rotation?
或者,我怎样才能用实心三角形更改 arrows() 中的箭头?
plot(x, y, pch = "")
arrows(x, y, x-0.03, y, code = 1) #is there a parameter for the arrowhead symbol?
感谢您的帮助!
萨拉