参照を確認しましたが、データセットを x と y に適合させるには、多くのチュートリアルで最初に x と y をプロットし、次に適合線をプロットする必要があるようです。通常の手順は次のようになります。
## Calculate the fitted line
smoothingSpline = smooth.spline(tree_number[2:100], jaccard[1:99], spar=0.35)
plot(tree_number[2:100],jaccard[1:99]) #plot the data points
lines(smoothingSpline) # add the fitted spline line.
しかし、tree_number と jaccard をプロットしたくはありませんが、プロットに適合したスプライン ラインのみをプロットしたいのですが、どうすればよいですか?