scatterplot1

How to download and try this example

Usage: pl -gif scatterplot1.htm
Demonstrates an elementary 2-D scatter plot with 1-D distributions shown along axes

// set up plotting region using proc areadef #proc areadef rectangle: 1 1 3 3 xrange: -5 80 yrange: -5 80 // 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 red triangle points using proc scatterplot #proc scatterplot xfield: 1 yfield: 2 // clustevery: 3 symbol: shape=triangle fillcolor=red style=fillonly // draw bar dist along Y axis using proc scatterplot #proc scatterplot xfield: 1 ylocation: @AREABOTTOM+0.05 linelen: 0.1 // draw bar dist along X axis using proc scatterplot #proc scatterplot yfield: 2 xlocation: @AREALEFT+0.05 linelen: 0.1 #proc trailer data: 5 8 10 9 56 51 56 51 17 22 28 27 56 51 56 51 56 51 32 22 42 45 43 39 56 51 56 51 54 72 55 55 56 37 56 51 56 51 56 52 57 54 60 65 56 51 56 51 56 51