File: prefab_vbars.html

package info (click to toggle)
ploticus-doc 2.0.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,284 kB
  • ctags: 83
  • sloc: pascal: 149; makefile: 61; sh: 30
file content (269 lines) | stat: -rw-r--r-- 6,641 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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<html>
<head>
<!-- This file has been generated by unroff 1.0, 06/13/02 07:32:04. -->
<!-- Do not edit! -->
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
-->
</STYLE>
<title>ploticus: vbars 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>vbars prefab</h2></td>
  <td align=right>
  <small>
  <a href="../doc/Welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  <a href="../doc/Welcome.html">Welcome</a> &nbsp; &nbsp;
  <a href="../gallery/index.html">Gallery</a> &nbsp; &nbsp;
  <a href="../doc/Contents.html">Handbook</a> 
  <td></tr></table>
</td></tr>
<td>
<br>
<br>

<title>Manual page for vbars_prefab(PL)</title>
</head>
<body>

<h2>EXAMPLE 1</h2>
<p>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/vbars1.gif"></td></tr>
</table></center>
<p>
<pre>
  ploticus  -prefab vbars  data=data4  delim=tab  x=1  y=2  vals=yes\
       yrange=0  yinc=20  ygrid=yes  barwidth=0.3 

	data4 file:
		Group A	78	7
		Group B	84	12
		Group C	56	6

</pre>
<h2>EXAMPLE 2</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/vbars2.gif"></td></tr>
</table></center>
<p>
<pre>
   ploticus -prefab vbars  data=data5  delim=tab  x=1  y=2  err=3  \
   y2=4  err2=5  errunder=yes  ygrid=yes  barwidth=0.1  \
     name=Treatment  name2=Control stubvert=yes 

    data5 file:
	Test 3	76	19	84	14
	Test 4	83	12	64	9
	Test 5	95	11	92	13
	...etc..

</pre>
<h2>EXAMPLE 3</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/vbars3.gif"></td></tr>
</table></center>
<p>
<pre>
  ploticus -prefab vbars  data=data5  delim=tab  x=1  y=2  err=3  y2=4  \
  err2=5   erronly=yes   name=Treatment  name2=Control  stubvert=yes \
  errcolor=red  errcolor2=blue  sep=0.08  xgrid=yes  ylog=log

</pre>

<h2>EXAMPLE 4</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/vbars4.gif"></td></tr>
</table></center>
<pre>
   ploticus -prefab vbars  data=data18  x=1  y=2  crossover=0  \
   color=blue  vals=yes

   The data18 file:
	1992	-47
	1993	-63
	1994	-24
	1995	12
	..etc.
</pre>

<p>
<a href="prefabs.html#examples">
 How to run these examples
</a>

<br><br><br>

<h2>DESCRIPTION</h2>
<tt>vbars</tt> is a 
<a href="prefabs.html">
 prefab
</a>
for producing bar graphs with vertical solid bars for one or two groups.<tt> </tt>
Two groups of values may be displayed if <b>y2</b> (etc) are used, as in the second example.<tt> </tt>
Error bars may be added above or below the bar graph, or error bars alone may be rendered.<tt> </tt>
By default the X axis is categories, but it may be continuous numeric if <b>xnumeric</b> is used
(for chronological data use the
<a href="prefab_chron.html">
 chron prefab
</a>
).<tt> </tt>
This prefab is based on
<a href="bars.html">
 proc bars
</a>
 .<tt> </tt>

<br><br><br>

<h2>PARAMETERS</h2>
<dl>
<dt><dd><p>
<a href="prefab_stdparms.html">
 Standard prefab parameters
</a>
are all supported.  <b>data</b>, <b>x</b> and <b>y</b> are required.<tt> </tt>
<b>y</b> values should be numeric and will determine the height of bars.<tt> </tt>
<b>x</b> values determine bar locations.<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>color</b> is the 
<a href="color.html">
 color
</a>
of the first set of filled bars (default = orange)

<br>
<br>
<dt><dd><p>
<b>barwidth</b> is the width of the filled bars.  This is a value in inches,
or may be given as <tt>line</tt> for very thin bars.<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>errcolor</b> is the error bar 
<a href="color.html">
 color
</a>
for the error bars associated with the first set of bars
(default = black).<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>errwidth</b> is the width of error bar tails in inches (default = 0.08)

<br>
<br>
<dt><dd><p>
<b>errthick</b> is the thickness of the error bar lines (default = 0.5)

<br>
<br>
<dt><dd><p>
<b>errunder</b> may be set to <tt>yes</tt> if error bars should be drawn "under"
the filled bars (only the upward error bar is thus visible).<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>erronly</b> may be set to <tt>yes</tt> if error bars only are desired,
without any filled bars.<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>xnumeric</b> may be specified as <tt>yes</tt> to signify that X values
are numeric and not categories.<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>vals</b> may be specified as <tt>yes</tt> to indicate that the
numeric values should be displayed near the top of each bar.<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>crossover</b> may be specified as the value in Y where bars begin
to point downward instead of upward.  For instance, <tt>crossover=0</tt>
is often useful when dealing with financial income, to show loss
using downward bars.<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>curve</b> may be given as <tt>yes</tt>, or as a
<a href="linedetails.html">
 linedetails
</a>
attribute, which causes a moving average curve to be fit to bars, and drawn behind 
the bars.  Not applicable to a second set of bars.<tt> </tt>
The <b>order</b> parameter may be set to the number of preceding data points 
to be considered when computing averages (default = 5).<tt> </tt>

</dl>
<p>
The following parameters are used when displaying two groups of values.<tt> </tt>
The second example above illustrates.<tt> </tt>

<dl>
<dt><dd><p>
<b>y2</b>, <b>color2</b>, <b>err2</b>, and <b>errcolor2</b> control the size and color
of the second set of bars, and the magnitude and color of error bars
associated with the second set.  Default color2 is green.<tt> </tt>

<br>
<br>
<dt><dd><p>
<b>sep</b> controls bar separation (default=0.15)

<br>
<br>
<dt><dd><p>
<b>name</b> and <b>name2</b> should be given as legend labels for the two groups.<tt> </tt>
If your data contains a field name header
and <b>header=yes</b> is specified, <b>name</b> defaults to the
<b>y</b> field name, and <b>name2</b> defaults to the <b>y2</b> field name (new in 2.04).<tt> </tt>


<br>
<br>
<dt><dd><p>
<b>legend</b> controls the 
<a href="attributetypes.html#xy">
 location
</a>
of the legend.  Example: <tt>"legend=1 0.5"</tt>   Default is <tt>min+0.4 max</tt>.<tt> </tt>


<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>
</dl>
<p><hr>
Markup created by <em>unroff</em> 1.0,&#160;<tt> </tt>&#160;<tt> </tt>June 13, 2002.
</body>
</html>