dupsleg

How to download and try this example

Usage: pl -gif dupsleg.htm
Demonstrates a scatterplot where degree of duplicity is 
expressed by symbol color.

// set up legend explicitly (3 entries).. #proc legendentry sampletype: symbol tag: 4 details: shape=circle style=filled fillcolor=red radius=0.04 label: 4 or more #proc legendentry sampletype: symbol tag: 2 details: shape=circle style=filled fillcolor=green radius=0.04 label: 2 - 3 #proc legendentry sampletype: symbol tag: 1 details: shape=circle style=filled fillcolor=blue radius=0.04 label: 1 // get the data.. #proc getdata data: 3 7 A 4 6 B 4 6 B 2 8 A 2 8 A 2 8 B 2 8 B 2 8 B 1 6 A // define the plotting area.. #proc areadef rectangle: 1 1 4 4 xrange: 0 10 yrange: 0 10 frame: color=gray(0.8) // render the scatterplot.. #proc scatterplot xfield: 1 yfield: 2 dupsleg: yes cluster: yes clusterfact: 3.0 // display the legend.. #proc legend location: min+0.3 min-0.3