File: prefab_compare_ex

package info (click to toggle)
ploticus-doc 2.33-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,392 kB
  • ctags: 169
  • sloc: pascal: 469; makefile: 63; sh: 11
file content (205 lines) | stat: -rw-r--r-- 5,671 bytes parent folder | download
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
.ig >>
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
        OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }

        H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
        H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
        H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
        H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: examples - 'compare' prefab</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
  <table cellpadding=2 width=550><tr>
  <td><br><h2>Examples - 'compare' prefab</h2></td>
  <td align=right>
  <small>
  <a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  Version 2.33 Jun'06
     </small><br><a href="../doc/prefabs.html">Prefabs</a>
  <td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>

.TH Examples_-_'compare'_prefab PL "02-JUN-2006   PL ploticus.sourceforge.net"

.LP
These examples all use the
.ig >>
<a href="prefab_compare.html">
.>>
\0compare prefab.
.ig >>
</a>
.>>
All of these examples are included in the distribution (\fC./pltestsuite/testpf_compare\fR).
.ig >>
<a href="prefab_gallery.html">
.>>
\0Gallery of ALL prefab examples
.ig >>
</a>
.>>
.LP
The 
.ig >>
<a href="prefab_compare.html">
.>>
\0compare prefab
.ig >>
</a>
.>>
\fBcomputes means and standard deviations from your data set\fR, and then displays them
as a collection of bars with error bars.

.ig >>
<br><br><br>
.>>

.ig >>

Examples 1 thru 5 use the <tt>dexa.dat</tt> data file which looks like this (sample).
Field 1 identifies the category, and field 2 (sex) identifies the subcategory.  The other
fields are variables that can be plotted.
<pre>
strain sex bw RFbmc LFbmc RFbmd LFbmd
129S1/SvImJ f 20.5 0.0265 0.0313 0.0647 0.0695
129S1/SvImJ f 20 0.0326 0.0351 0.0739 0.0741
129S1/SvImJ f 19.3 0.0249 0.0302 0.0682 0.0686
129S1/SvImJ m 24.1 0.0285 0.0340 0.0720 0.0762
129S1/SvImJ m 20.6 0.0260 0.0270 0.0635 0.0670
129S1/SvImJ m 22.9 0.0322 0.0374 0.0730 0.0785
A/J f 21.6 0.0227 0.0257 0.0644 0.0691
A/J f 21.1 0.0229 0.0284 0.0608 0.0674
A/J f 23.4 0.0242 0.0259 0.0630 0.0687
A/J m 25.1 0.0284 0.0315 0.0669 0.0661
A/J m 27.3 0.0248 0.0296 0.0638 0.0696
A/J m 24.6 0.0229 0.0227 0.0628 0.0682
....
</pre>




<h2> example 1 - comparison of one variable</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/compare1.gif"></td></tr>
</table></center>
<pre>
pl -prefab compare data=dexa.dat header=yes catfields=strain \ 
  y=RFbmc stubvert=yes barwidth=0.1 \ 
  "title= Comparison of one variable" "titledet= adjust=0,+0.4" 
</pre>

<br>
<br>
<br>

<h2> example 2 - comparison of two variables, no subcats</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/compare2.gif"></td></tr>
</table></center>
<pre>
pl -prefab compare data=dexa.dat header=yes catfields=strain \ 
  y=RFbmc y2=LFbmc stubvert=yes barwidth=0.1 \ 
  "title= Comparison of two variables, no subcats" "titledet= adjust=0,+0.4" 
</pre>
<br>
<br>
<br>

<h2> example 3 - comparison of four variables, no subcats</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/compare3.gif"></td></tr>
</table></center>
<pre>
pl -prefab compare data=dexa.dat header=yes catfields=strain \ 
  y=RFbmc y2=LFbmc y3=RFbmd y4=LFbmd  stubvert=yes \ 
  "title= Comparison of four variables, no subcats" \ 
  "titledet= adjust=0,+0.4" 
</pre>
<br>
<br>
<br>

<h2> example 4 - comparison of two variables, with f & m subcats</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/compare4.gif"></td></tr>
</table></center>
<pre>
pl -prefab compare data=dexa.dat header=yes catfields=strain,sex \ 
  y=RFbmc y2=LFbmc leftsub=f rightsub=m stubvert=yes \ 
  "title= Comparison of two variables, with f & m subcats" \ 
  "titledet= adjust=0,+0.4" 
</pre>
<br>
<br>
<br>

<h2> example 5 - comparison of four variables, with f & m subcats</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/compare5.gif"></td></tr>
</table></center>
<pre>
pl -prefab compare data=dexa.dat header=yes catfields=strain,sex \ 
  "rectangle= 1 2 8 4"  -pagesize 9,5 \ 
  y=RFbmc y2=LFbmc y3=RFbmd y4=LFbmd leftsub=f rightsub=m stubvert=yes \ 
  "title= Comparison of four variables, with f & m subcats" \ 
  "titledet= adjust=0,+0.4" 
</pre>
<br>
<br>
<br>

<h2> example 6 - comparison of four conditionally-selected variables</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/compare6.gif"></td></tr>
</table></center>
<pre>
 pl -prefab compare data=data28 header=yes catfields=strain \ 
    "rectangle=1 2 6 5"  \ 
    y=pct_mac y2=pct_mac y3=pct_mac y4=pct_mac  \ 
    "ptselect= @sactime = 0 && @inj = trt" \ 
    "ptselect2= @sactime = 24 && @inj = trt" \ 
    "ptselect3= @sactime = 48 && @inj = trt" \ 
    "ptselect4= @sactime = 72 && @inj = trt" \ 
     ptselecttags=0,24,48,72 \ 
    stubvert=yes erroneway=yes  
</pre>


.>>

.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif"> 
</center>
</td></tr>
</table>
<br>
<center>
Ploticus is hosted at http://ploticus.sourceforge.net <br>
<img src="http://sourceforge.net/sflogo.php?group_id=38453" width="88" height="31" border="0" alt="SourceForge Logo">
</center>
.>>