R有很好的图表,虽然它需要你学习一些语法(在我看来非常值得努力).
该arrows()功能可用于执行此操作.这是一个如何使用该函数的简单示例:
x <- stats::runif(12); y <- stats::rnorm(12)
i <- order(x,y); x <- x[i]; y <- y[i]
plot(x,y, main="arrows(.) and segments(.)")
## draw arrows from point to point :
s <- seq(length(x)-1)
arrows(x[s], y[s], x[s+1], y[s+1], col= 1:3)
Run Code Online (Sandbox Code Playgroud)
更一般地,从最近的R Journal文章中读取"使用R绘制图",其中包括对坐标系的讨论.