| 1 | <html><h1>timely</h1><img src="timely.gif"><p> |
| 2 | <a href="gall.using.html">How to download and try this example</a><br> |
| 3 | |
| 4 | <pre><b>Usage: pl -gif timely.htm |
| 5 | |
| 6 | Uses the data file <a href="timely.dat">timely.dat</a> |
| 7 | <hr></b> |
| 8 | |
| 9 | |
| 10 | //<b> do page title using <a href="../doc/page.html">proc page</a></b> |
| 11 | #proc page |
| 12 | pagesize: 8.5 11 |
| 13 | #if @DEVICE in gif,png |
| 14 | scale: 0.5 |
| 15 | #endif |
| 16 | title: Timeliness of Problem Resolution, By Center |
| 17 | 03-31-99 |
| 18 | |
| 19 | //<b> do column headers using <a href="../doc/annotate.html">proc annotate</a> |
| 20 | // and <a href="../doc/line.html">proc line</a></b> |
| 21 | #proc annotate |
| 22 | location: 1 9.2 |
| 23 | textdetails: align=C size=10 |
| 24 | text: CENTER |
| 25 | |
| 26 | #proc line |
| 27 | points 0.7 9 1.3 9 |
| 28 | |
| 29 | #proc annotate |
| 30 | location: 1.9 9.75 |
| 31 | textdetails: align=C size=10 |
| 32 | text: Number of |
| 33 | Problems |
| 34 | Reported & |
| 35 | Resolved |
| 36 | |
| 37 | #proc line |
| 38 | points 1.5 9 2.3 9 |
| 39 | |
| 40 | |
| 41 | //<b> read in data file using <a href="../doc/getdata.html">proc getdata</a></b> |
| 42 | #proc getdata |
| 43 | file: timely.dat |
| 44 | |
| 45 | //<b> keep only fields 3 and 9 using <a href="../doc/transform.html">proc processdata</a></b> |
| 46 | #proc processdata |
| 47 | keepfields: 3 9 |
| 48 | |
| 49 | // <b> define the plotting area and do Y axis using <a href="../doc/areadef.html">proc areadef</a></b> |
| 50 | #proc areadef |
| 51 | rectangle: 2.5 2 7.5 9.0 |
| 52 | axes: Y |
| 53 | xrange: 0 90 |
| 54 | yscaletype: categories |
| 55 | ycategories: |
| 56 | 01 Sea |
| 57 | 02 Alb |
| 58 | 06 NY |
| 59 | 07 Buf |
| 60 | 08 DC |
| 61 | 09 Orl |
| 62 | 10 Hou |
| 63 | 11 Cin |
| 64 | 13 Chi |
| 65 | 15 Tor |
| 66 | 16 LV |
| 67 | 18 Mon |
| 68 | 19 Rch |
| 69 | 20 Nor |
| 70 | 21 NO |
| 71 | 22 Mai |
| 72 | \ |
| 73 | All |
| 74 | |
| 75 | |
| 76 | yaxis.stubdetails: align=L adjust=-1.5,0 size=10 |
| 77 | yaxis.axisline: yes |
| 78 | yaxis.ticlen: 0 |
| 79 | yaxis.stubs: usecategories |
| 80 | |
| 81 | // <b> do an X axis on bottom and top using <a href="../doc/axis.html">proc xaxis</a></b> |
| 82 | #proc xaxis |
| 83 | grid: color=green |
| 84 | label: Number of days |
| 85 | #saveas: AX |
| 86 | stubs: inc 20 |
| 87 | |
| 88 | // do a second x axis across the top.. |
| 89 | #proc xaxis |
| 90 | #clone: AX |
| 91 | location: max |
| 92 | stubdetails: adjust=0,0.3 |
| 93 | labeldetails: adjust=0,0.7 |
| 94 | |
| 95 | // <b>do rangebar for all clinics using <a href="../doc/rangebar.html">proc rangebar</a></b> |
| 96 | #proc rangebar |
| 97 | axis: x |
| 98 | barloc: All |
| 99 | datafield: 2 |
| 100 | mediansym: shape=circle fillcolor=0.2 style=filled radius=0.05 |
| 101 | nlocation: 1.9 |
| 102 | barwidth: 0.15 |
| 103 | nword: N=@@N |
| 104 | tailmode: 5/95 |
| 105 | textdetails: size=10 |
| 106 | #saveas: B |
| 107 | |
| 108 | #loop |
| 109 | |
| 110 | #set CEN = $nextstub(2) |
| 111 | #if $strlen(@CEN) < 1 |
| 112 | #break |
| 113 | #endif |
| 114 | |
| 115 | #proc print |
| 116 | label: @CEN |
| 117 | |
| 118 | // <b>do rangebar for each center using <a href="../doc/rangebar.html">proc rangebar</a></b> |
| 119 | #proc rangebar |
| 120 | #clone B |
| 121 | select: @@1 = @CEN |
| 122 | barloc: @CEN |
| 123 | showoutliers: yes |
| 124 | |
| 125 | #endloop |
| 126 | |
| 127 | // <b>do annotations at bottom of page using <a href="../doc/annotate.html">proc annotate</a></b> |
| 128 | #proc annotate |
| 129 | location: 1 1.4 |
| 130 | textdetails: align=L |
| 131 | text: |
| 132 | Dot = median. |
| 133 | Box = 25th through 75th percentile. |
| 134 | Tails = 5th and 95th percentile. |
| 135 | Outliers are marked with a circle or asterisk. |
| 136 | \ |
| 137 | \ |
| 138 | Includes only 2-year-contracted centers. |