# scatterplot3a

How to download and try this example

    Usage: pl -gif scatterplot3a.htm -scale 0.7
    Points are denoted using symbols of various size.

    //  set up plotting region using proc areadef
    #proc areadef
      rectangle: 1 1 4 4
      xrange: 0 80
      yrange: 0 80
      frame: width=0.5 color=0.3
      xaxis.stubs: inc 10
      yaxis.stubs: inc 10

    //  specify data using proc getdata
    #proc getdata
      #intrailer

    //  draw diagonal line using proc line
    #proc line
      notation: scaled
      linedetails: width=0.5 color=0.8
      points: 0 0 80 80

    //  draw pink points using proc scatterplot
    #proc scatterplot
      xfield: 1
      yfield: 2
      symbol: shape=nicecircle radius=0.1 fillcolor=pink
      sizefield: 3
      sizescale: 0.3

    //  do it a 2nd time to overlay outlines using proc scatterplot
    #proc scatterplot
      xfield: 1
      yfield: 2
      symbol: shape=nicecircle radius=0.1
      sizefield: 3
      sizescale: 0.3

    //  make three legend entries explicitly using proc legendentry
    // add newlines+space to labels to add vertical spacing
    #proc legendentry
      sampletype: symbol
      details: shape=nicecircle fillcolor=pink radius=0.08
      label: 100 PPM \n

    #proc legendentry
      sampletype: symbol
      details: shape=nicecircle fillcolor=pink radius=0.13
      label: 500 PPM \n\n

    #proc legendentry
      sampletype: symbol
      details: shape=nicecircle fillcolor=pink radius=0.18
      label: 1000 PPM

    #proc legend
      location: min+0.35 max-0.1

    #proc trailer
      data:  5 	8    12
    	10 	9    15
    	56 	51   22
    	56 	51   30
    	17 	22   33
    	28 	27   35
    	56 	51   40
    	56 	51   42
    	56 	51   44
    	32 	22   46
    	42 	45   48
    	43 	39   50
    	56 	51   20
    	56 	51   22
    	54 	72   24
    	55 	55   28
    	56 	37   12
    	56 	51   34
     	56 	51   44
    	56 	52   50
    	57 	54   52
    	60 	65   17
    	56 	51   40
    	56 	51   42
    	56 	51   46