1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
<html><h1>clickmap_area3</h1><img src="clickmap_area3.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>
<pre><b>Usage: pl -gif -map clickmap_area3.htm</b>
Uses data file <a href="scatterplot10.dat">scatterplot10.dat</a>.
<hr>
<pre>
#setifnotgiven CGI = "http://ploticus.sourceforge.net/cgi-bin/showcgiargs"
// read in data
#proc getdata
file: scatterplot10.dat
fieldnames: strain xval xse xsd extra yval yse ysd
// set up plot area
#proc areadef
rectangle: 1 1 4 4
xautorange: datafield=xval
yautorange: datafield=yval
clickmapurl: @CGI?x=@@XVAL&y=@@YVAL
// do visible X axis..
#proc xaxis
stubs: inc
stubdetails: size=6
// do 2nd, hidden X axis for the clickmap, to get higher granularity than the displayed stubs..
// XINC is set by xaxis above..
#proc xaxis
#set INC = $arith(@XINC/4)
stubs: inc @INC
clickmap: xygrid
axisline: no
tics: no
stubomit: *
// do visible Y axis..
#proc yaxis
stubs: inc
stubdetails: size=6
// do 2nd, hidden Y axis for the clickmap, to get higher granularity than the displayed stubs..
// YINC is set by xaxis above..
#proc yaxis
#set INC = $arith(@YINC/4)
stubs: inc @INC
clickmap: xygrid
axisline: no
tics: no
stubomit: *
// do regression curve..
#proc curvefit
curvetype: regression
xfield: xval
yfield: yval
linedetails: color=red width=0.5
// do annotation in lower right corner..
#proc annotate
location: max min-0.4
textdetails: color=red align=R size=6
text: @REGRESSION_LINE
r = @CORRELATION
// do vertical error bars..
#proc bars
locfield: xval
lenfield: yval
errbarfield: yse
//errbarmult: 2
thinbarline: color=orange width=0.5
tails: 0.02
truncate: yes
// do horizontal error bars..
#proc bars
locfield: yval
lenfield: xval
horizontalbars: yes
errbarfield: xse
//errbarmult: 2
thinbarline: color=orange width=0.5
tails: 0.02
truncate: yes
// do point labels..
//#proc scatterplot
//xfield: xval
//yfield: yval
//labelfield: strain
//textdetails: size=6 color=teal adjust=0,0.07
// do points..
#proc scatterplot
xfield: xval
yfield: yval
symbol: shape=circle style=filled radius=0.02 fillcolor=blue
|