Plot basis spline functions
viewBasis(knots, degree)
A vector of values between 0 and 1, specifying cut-points for splines
Integer specifying degree of curvature.
A ggplot object that contains a plot of the basis functions. In total, there will be length(knots) + degree + 1 functions plotted.