<h9>scatterplot9</h9>

How to download and try this example

    Usage: pl -gif scatterplot9.htm
    Scatterplot of date (X) vs. quality score (Y).
    Demonstrates proc autorange.

    #proc page
    #if @DEVICE in gif,png
      scale: 0.7
    #endif

    //  specify data using proc getdata
    #proc getdata
    fieldnames: id date score
    data:  	4701 10/11/97 67
    	4703 10/17/97 52
    	4704 11/02/97 70
    	4705 11/09/97 71
    	4706 11/16/97 52
    	4707 11/30/97 77
    	4708 01/14/98 50
    	4709 01/17/98 42
    	4710 01/30/98 45
    	4711 03/10/98 65
    	4712 03/18/98 70
    	4713 04/20/98 65
    	4714 05/04/98 69
    	4715 05/30/98 88
    	4715 07/11/98 80

    //  set up plotting area using proc areadef, using the
    // variables set in proc autorange...
    #proc areadef
    title: Performance over time
    rectangle: 1 1 5 2.5
    xscaletype: date mm/dd/yy
    xautorange: datafield=2 nearest=quarter
    yrange: 0 100
    yaxis.stubs: inc 20
    yaxis.label: Scores
    xaxis.stubs: inc 1 month
    xaxis.stubformat: M
    xaxis.autoyears: 'yy

    //  render points using proc scatterplot
    #proc scatterplot
      xfield: date
      yfield: score
      symbol: shape=square radius=0.04 style=filled fillcolor=purple

    //  show average using proc curvefit
    #proc curvefit
      xfield: date
      yfield: score
      //curvetype: bspline
      curvetype: regression
      order: 5
      linedetails: color=green