Menu

Scatterplot lines as splines?

Help
Miraceti
2009-06-05
2013-01-15
  • Miraceti

    Miraceti - 2009-06-05

    Is it possible to create a scatterplot of type "plot lines", where lines are replaced with splines (cubic splines or B-splines)?

    Thank you.

     
    • Thomas Friedrichsmeier

      Our scatterplot plugin simply does not have support for this, yet. Of course it is still possible to do this, but you'll have to write a bit of R code yourself. You can start out with the code generated by the scatterplot plugin (click on code, or copy it from the Command Log after running). Put that into a script file and insert something like

          lines(spline(Xvars[[i]], Yvars[[i]]))

      below the call to "points". click Run->Run all, and that should be it.

      See also
         help(spline)

      Regards
      Thomas

       
MongoDB Logo MongoDB