Debian Codegraph @

pltestsuite/timeline2.htm

raw symbols SCIP
1 <html><h1>timeline2</h1><img src="timeline2.gif"><p>
2 <a href="gall.using.html">How to download and try this example</a><br>
3
4 <pre><b>Usage: pl -gif timeline2.htm
5 <hr></b>
6
7
8 //<b> specify data using <a href="../doc/getdata.html">proc getdata</a></b>
9 #proc getdata
10 data:
11 OWUNN 01/12/99 11/12/98 03/13/99
12 SMFWW 01/19/99 11/19/98 03/18/99
13 SDUNN 01/26/99 11/26/98 03/25/99
14 BAABR 01/31/99 12/01/98 04/01/99
15 UBANI 02/22/99 12/22/98 04/22/99
16
17 //<b> set up plotting area using <a href="../doc/areadef.html">proc areadef</a></b>
18 // Note that date format of mm/dd/yy is specified as the xscaletype.
19 #proc areadef
20 title: Allowable follow-up visit time windows
21 rectangle: 1 1 5 2
22 xscaletype: date mm/dd/yy
23 xrange: 11/01/98 05/01/99
24 yscaletype: categories
25 ycategories: datafield 1
26
27 //<b> set up x and y axes using <a href="../doc/axis.html">proc axis</a></b>
28 // first time- do month stubs every 3 months
29 #proc xaxis
30 stubs: incremental 1 month
31 stubformat: MMMyy
32
33 // run it again to do the grid at every month
34 #proc xaxis
35 stubs: none
36 ticincrement: 1 month
37 grid: color=blue
38
39 #proc yaxis
40 stubs: categories
41 label: Patient code
42 labeldetails: adjust=-0.2,0
43 grid: color=green
44
45 //<b> render bars using <a href="../doc/bars.html">proc bars</a></b>
46 // use segmentfields and tails but not lenfield
47 #proc bars
48 color: green
49 barwidth: 0.05
50 horizontalbars: yes
51 segmentfields: 3 4
52 locfield: 1
53 tails: 0.1
54
55 //<b> render dots using <a href="../doc/scatterplot.html">proc scatterplot</a></b>
56 #proc scatterplot
57 xfield: 2
58 yfield: 1
59 symbol: shape=circle style=filled fillcolor=red
60 legendlabel: = Target\n date
61
62 //<b> render legend using <a href="../doc/legend.html">proc legend</a></b>
63 #proc legend
64 format: singleline
65 location: max-0.5 max