curvefit3

How to download and try this example

Usage: pl -gif curvefit3.htm

Demonstrates the different types of curves that can be generated #proc getdata data: 0 1 1 4 2 2 3 5 4 7 5 10 6 7 7 8 8 4 9 8 10 7 11 3 #proc areadef rectangle: 1 1 4 3 xrange: 0 12 yrange: 0 12 xaxis.stubs: inc yaxis.stubs: inc #proc lineplot xfield: 1 yfield: 2 pointsymbol: radius=0.03 shape=square style=filled linedetails: color=gray(0.8) width=0.5 legendlabel: Raw data points legendsampletype: line+symbol #proc curvefit xfield: 1 yfield: 2 curvetype: movingavg order: 5 linedetails: color=blue width=0.5 legendlabel: Moving average (5 points) #proc curvefit xfield: 1 yfield: 2 curvetype: regression linedetails: color=green width=0.5 legendlabel: Linear regression #proc curvefit xfield: 1 yfield: 2 curvetype: bspline order: 5 linedetails: color=red width=0.5 legendlabel: Bspline, order=5 #proc curvefit xfield: 1 yfield: 2 curvetype: average order: 5 linedetails: color=black width=0.5 legendlabel: Average (5 points) #proc curvefit xfield: 1 yfield: 2 curvetype: interpolated linedetails: color=orange width=0.5 legendlabel: Interpolated #proc legend location: max+0.5 max