| 1 | <html><h1>lineplot4</h1><img src="lineplot4.gif"><p> |
| 2 | <a href="gall.using.html">How to download and try this example</a><br> |
| 3 | |
| 4 | <pre><b>Usage: pl -gif lineplot4.htm |
| 5 | This example uses proc lineplot with instancemode and accum options, |
| 6 | to count occurrances over time. Occurrances having the same date |
| 7 | are summed into one data point (groupmode). |
| 8 | <hr></b> |
| 9 | |
| 10 | // <b> Set up plotting area using <a href="../doc/areadef.html">proc areadef</a>...</b> |
| 11 | #proc areadef |
| 12 | title: Cumulative number of events |
| 13 | rectangle: 1 1 5 2 |
| 14 | xscaletype: date |
| 15 | xrange: 110198 041599 |
| 16 | yrange: 0 120 |
| 17 | xaxis.stubs: incremental 1 month |
| 18 | xaxis.stubformat: MMMyy |
| 19 | yaxis.stubs: incremental 20 |
| 20 | yaxis.grid: color=green |
| 21 | |
| 22 | |
| 23 | // <b> <a href="../doc/getdata.html">proc getdata</a> will read data (from bottom of file)</b> |
| 24 | #proc getdata |
| 25 | #intrailer |
| 26 | |
| 27 | // <b> Use <a href="../doc/lineplot.html">proc lineplot</a> to render curve.. </b> |
| 28 | #proc lineplot |
| 29 | xfield: 2 |
| 30 | instancemode: yes |
| 31 | groupmode: yes |
| 32 | linedetails: color=purple |
| 33 | accum: yes |
| 34 | // label: Total: @@YFINAL |
| 35 | lastx: 030199 |
| 36 | // <b> Use #endproc to mark end of |
| 37 | // proc lineplot since it sets YFINAL..</b> |
| 38 | #endproc |
| 39 | |
| 40 | // <b>now calculate percent of goal using some <a href="../doc/functions.html">functions</a></b> |
| 41 | #set PCTOFGOAL = $arith(@YFINAL/1.2) |
| 42 | #set PCTOFGOAL = $formatfloat(@PCTOFGOAL,%2.0f) |
| 43 | |
| 44 | |
| 45 | // <b> Use <a href="../doc/annotate.html">proc annotate</a> to display N |
| 46 | // and % of goal near the end of the curve.. </b> |
| 47 | #proc annotate |
| 48 | location: @XFINAL(s) @YFINAL(s) |
| 49 | textdetails: size=8 align=L adjust=0.1,0 |
| 50 | text: N=@YFINAL |
| 51 | (@PCTOFGOAL% of goal) |
| 52 | |
| 53 | #proc trailer |
| 54 | data: |
| 55 | hacvi 110298 |
| 56 | aurco 110498 |
| 57 | pmfil 110598 |
| 58 | rybdu 110598 |
| 59 | hamdo 111098 |
| 60 | masha 111198 |
| 61 | delro 111298 |
| 62 | teulm 111398 |
| 63 | whire 111398 |
| 64 | triha 111698 |
| 65 | magil 111698 |
| 66 | lmwen 111798 |
| 67 | vando 111798 |
| 68 | tobpa 111898 |
| 69 | ondma 111998 |
| 70 | dogro 111998 |
| 71 | yntsa 111998 |
| 72 | dowco 112098 |
| 73 | dosha 112398 |
| 74 | hacra 112398 |
| 75 | skezi 112498 |
| 76 | robru 113098 |
| 77 | loral 120198 |
| 78 | rucoo 120198 |
| 79 | ranth 120298 |
| 80 | egavi 120298 |
| 81 | feajo 120398 |
| 82 | lagcl 120398 |
| 83 | emeba 120798 |
| 84 | sohay 120798 |
| 85 | gleyo 120798 |
| 86 | stepm 120898 |
| 87 | shemi 120998 |
| 88 | nebla 120998 |
| 89 | dclen 121098 |
| 90 | mezcm 121198 |
| 91 | carst 121498 |
| 92 | moonj 121498 |
| 93 | rarkn 121498 |
| 94 | armse 121598 |
| 95 | gekoh 121598 |
| 96 | jamen 121598 |
| 97 | milmu 121698 |
| 98 | mirle 121698 |
| 99 | rolvi 121798 |
| 100 | cofbl 121898 |
| 101 | mccne 121898 |
| 102 | holog 122198 |
| 103 | yosed 122198 |
| 104 | hofal 122398 |
| 105 | eggal 122898 |
| 106 | jawil 122898 |
| 107 | bavke 122898 |
| 108 | warse 123098 |
| 109 | heddk 010699 |
| 110 | fooel 010799 |
| 111 | lalar 011199 |
| 112 | taywi 011199 |
| 113 | gooca 011199 |
| 114 | flash 011299 |
| 115 | glahe 011299 |
| 116 | lilhl 011399 |
| 117 | price 011599 |
| 118 | bowth 011999 |
| 119 | lesbu 011999 |
| 120 | grasa 011999 |
| 121 | jpick 012099 |
| 122 | maand 012099 |
| 123 | amemc 012099 |
| 124 | daajo 012299 |
| 125 | tisrr 012599 |
| 126 | horfr 012699 |
| 127 | dotka 012799 |
| 128 | posla 012799 |
| 129 | eisei 012899 |
| 130 | catho 020199 |
| 131 | carth 020199 |
| 132 | citkc 020399 |
| 133 | linlo 020499 |
| 134 | schal 020499 |
| 135 | cawfu 020599 |
| 136 | chesf 020999 |
| 137 | hajpl 021099 |
| 138 | altil 021199 |
| 139 | camor 021199 |
| 140 | elidr 021299 |
| 141 | latro 021699 |
| 142 | davie 021699 |
| 143 | tilia 021799 |
| 144 | grimo 021799 |
| 145 | vijmi 021899 |
| 146 | belvi 021899 |
| 147 | prihx 021999 |
| 148 | klems 021999 |