Methods for Drawing Piecewise Smooth Curves in R