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
|
<html><h1>scatterplot10</h1><img src="scatterplot10.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>
<pre><b>Usage: pl -gif scatterplot10.htm</b>
Uses data file <a href="scatterplot10.dat">scatterplot10.dat</a>.
<hr>
<pre>
// 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
xaxis.stubs: inc
yaxis.stubs: inc
xaxis.stubdetails: size=6
yaxis.stubdetails: size=6
// 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
|