且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何绘制穿过某些点的平滑曲线

更新时间:2021-11-03 21:09:35

如果我理解正确的问题,那么通过控制点绘制样条线就可以完成:

if I understood the question right, drawing a spline through control points should do the job:

xspline(c(-1,-1.5,-3), c(4,2,0), shape = -1)