title: Obtain spline surface on R
body: <p>How do I generate a b-spline surface, let's say:</p>
  
  <pre><code>x=attitude$rating
  y=attitude$complaints
  z=attitude$privileges
  </code></pre>
  
  <p>would be x and y for the spline basis. z is the set of control points.</p>