2
<STYLE TYPE="text/css">
4
A:link{text-decoration:none}
5
A:visited{text-decoration:none}
6
A:active{text-decoration:none}
9
<title>ploticus: vbars prefab</title>
10
<body bgcolor=D0D0EE vlink=0000FF>
14
<table cellpadding=2 bgcolor=FFFFFF width=550 ><tr>
16
<table cellpadding=2 width=550><tr>
17
<td><br><h2>vbars prefab</h2></td>
20
<a href="../doc/Welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
21
<a href="../doc/Welcome.html">Welcome</a>
22
<a href="../gallery/index.html">Gallery</a>
23
<a href="../doc/Contents.html">Handbook</a>
31
.TH vbars_prefab PL "08-JAN-2002 PL ploticus.sourceforge.net"
36
<center><table cellpadding=2><tr>
37
<td><img src="../gallery/prefab_img/vbars1.gif"></td></tr>
42
pl -prefab vbars data=data4 delim=tab x=1 y=2 vals=yes\\
43
yrange=0 yinc=20 ygrid=yes barwidth=0.3
53
<center><table cellpadding=2><tr>
54
<td><img src="../gallery/prefab_img/vbars2.gif"></td></tr>
59
pl -prefab vbars data=data5 delim=tab x=1 y=2 err=3 \\
60
y2=4 err2=5 errunder=yes ygrid=yes barwidth=0.1 \\
61
name=Treatment name2=Control stubvert=yes
72
<center><table cellpadding=2><tr>
73
<td><img src="../gallery/prefab_img/vbars3.gif"></td></tr>
78
pl -prefab vbars data=data5 delim=tab x=1 y=2 err=3 y2=4 \\
79
err2=5 erronly=yes name=Treatment name2=Control stubvert=yes \\
80
errcolor=red errcolor2=blue sep=0.08 xgrid=yes ylog=log
86
<center><table cellpadding=2><tr>
87
<td><img src="../gallery/prefab_img/vbars4.gif"></td></tr>
91
pl -prefab vbars data=data18 x=1 y=2 crossover=0 \\
104
<a href="prefabs.html#examples">
106
\0How to run these examples
118
<a href="prefabs.html">
124
for producing bar graphs with vertical solid bars for one or two groups.
125
Two groups of values may be displayed if \fBy2\fR (etc) are used, as in the second example.
126
Error bars may be added above or below the bar graph, or error bars alone may be rendered.
127
By default the X axis is categories, but it may be continuous numeric if \fBxnumeric\fR is used
128
(for chronological data use the
130
<a href="prefab_chron.html">
137
This prefab is based on
154
<a href="prefab_stdparms.html">
156
\0Standard prefab parameters
160
are all supported. \fBdata\fR, \fBx\fR and \fBy\fR are required.
161
\fBy\fR values should be numeric and will determine the height of bars.
162
\fBx\fR values determine bar locations.
169
<a href="color.html">
175
of the first set of filled bars (default = orange)
180
\fBbarwidth\fR is the width of the filled bars. This is a value in inches,
181
or may be given as \fCline\fR for very thin bars.
186
\fBerrcolor\fR is the error bar
188
<a href="color.html">
194
for the error bars associated with the first set of bars
200
\fBerrwidth\fR is the width of error bar tails in inches (default = 0.08)
205
\fBerrthick\fR is the thickness of the error bar lines (default = 0.5)
210
\fBerrunder\fR may be set to \fCyes\fR if error bars should be drawn "under"
211
the filled bars (only the upward error bar is thus visible).
216
\fBerronly\fR may be set to \fCyes\fR if error bars only are desired,
217
without any filled bars.
222
\fBxnumeric\fR may be specified as \fCyes\fR to signify that X values
223
are numeric and not categories.
228
\fBvals\fR may be specified as \fCyes\fR to indicate that the
229
numeric values should be displayed near the top of each bar.
234
\fBcrossover\fR may be specified as the value in Y where bars begin
235
to point downward instead of upward. For instance, \fCcrossover=0\fR
236
is often useful when dealing with financial income, to show loss
242
\fBcurve\fR may be given as \fCyes\fR, or as a
244
<a href="linedetails.html">
250
attribute, which causes a moving average curve to be fit to bars, and drawn behind
251
the bars. Not applicable to a second set of bars.
252
The \fBorder\fR parameter may be set to the number of preceding data points
253
to be considered when computing averages (default = 5).
256
The following parameters are used when displaying two groups of values.
257
The second example above illustrates.
260
\fBy2\fR, \fBcolor2\fR, \fBerr2\fR, and \fBerrcolor2\fR control the size and color
261
of the second set of bars, and the magnitude and color of error bars
262
associated with the second set. Default color2 is green.
267
\fBsep\fR controls bar separation (default=0.15)
272
\fBname\fR and \fBname2\fR should be given as legend labels for the two groups
277
\fBlegend\fR controls the
279
<a href="attributetypes.html#xy">
285
of the legend. Example: \fC"legend=1 0.5"\fR Default is \fCmin+0.4 max\fR.
293
<a href="Welcome.html">
294
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine <br>
295
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
299
<img src="../gallery/all.gif">