The problem I am running into here is the following: there is a set of 4 points in 2D, and I need to plot a smooth curve in 2D space that runs through these points. Is there a package in R to do this?
Solved – Drawing smooth 2D curves with 2D spline in R
data visualizationr
Related Question
- R – Scatterplot Smoothing with Large Dataset: Exploring Different Methods
- Solved – Best way to visualize scatterplot with thousands of points in a grayscale-friendly way
- Statistical Power – How to Draw the Estimated Power Curve of a Test
- Solved – Confidence interval of first derivative of a loess smooth
Best Answer
The xspline function offers a generalization of Catmull-Rom splines, which sounds like what you want. From the examples: