File: td.htm

package info (click to toggle)
ploticus 2.33-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,608 kB
  • ctags: 2,838
  • sloc: ansic: 48,139; perl: 913; sh: 393; makefile: 138
file content (88 lines) | stat: -rw-r--r-- 2,294 bytes parent folder | download | duplicates (10)
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
<html><h1>td</h1><img src="td.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>

<pre><b>Usage: pl -gif td.htm
Source: Steffen R et.al., Epidemiology, Etiology and Impact
of Traveler's Diarrhea in Jamaica, JAMA 3/3/99 p. 815.
<hr></b>

//<b> set page-wide attributes appropriate for slides <a href="../doc/page.html">(proc page)</a></b>
#proc page
  color: white
  backgroundcolor: darkblue
  linewidth: 2
  pagesize: 6.6 4.4
  #if @DEVICE in gif,png
    scale: 0.7
  #endif

//<b> specify data <a href="../doc/getdata.html">(proc getdata)</a></b>
#proc getdata
data:
//    Mild    Moderate Classic  HA      HB
	23	18	10	10	35
	21	17	9	16	22
	28	24	13	24	39
	30	25	15	24	38
	28	24	14	16	29

//<b> set up plotting area <a href="../doc/areadef.html">(proc areadef)</a></b>
#proc areadef
  title: TD (Travelers Diarrhea)\nAttack Rates in Tourists 
  titledetails: align=C size=14 adjust=0,0.3
  //rectangle: 1 1 5 2
  areaname: slide
  xrange: 0 6
  yrange: 0 40


//<b> do filled pink curve <a href="../doc/lineplot.html">(proc lineplot)</a></b>
#proc lineplot
  yfield: 1
  fill: pink
  legendlabel: Mild TD

//<b> do filled blue curve <a href="../doc/lineplot.html">(proc lineplot)</a></b>
#proc lineplot
  yfield: 2
  fill: powderblue
  legendlabel: Moderate TD

//<b> do filled green curve <a href="../doc/lineplot.html">(proc lineplot)</a></b>
#proc lineplot
  yfield: 3
  fill: green
  legendlabel: Classic TD

//<b> do curve w/ diamond points <a href="../doc/lineplot.html">(proc lineplot)</a></b>
#proc lineplot
  yfield: 4
  pointsymbol: shape=diamond style=filled fillcolor=orange 
  linedetails: width=0.5 color=yellow
  legendlabel: Hotel A

//<b> do curve w/ square points <a href="../doc/lineplot.html">(proc lineplot)</a></b>
#proc lineplot
  yfield: 5
  pointsymbol: shape=square style=filled fillcolor=orange
  linedetails: width=0.5 color=yellow
  legendlabel: Hotel B


//<b> do axes <a href="../doc/axis.html">(proc xaxis, proc yaxis)</a></b> last so they are not obliterated
#proc xaxis
  stubrange: 0 6
  stubs: text
	March\n1996
	April\n1996
	May\n1996
	June\n1996
	July\n1996

#proc yaxis
  stubs: inc 10


//<b> render legend using labels specified above <a href="../doc/legend.html">(proc legend)</a></b>
#proc legend
  location: max-1 max