#set TITLE = "vbars prefab"
#include top

.SH EXAMPLE 1
.LP
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../prefabs/vbars1.gif"></td></tr>
</table></center>
.>>
.LP
.nf
  pl  -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

.fi
.SH EXAMPLE 2
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../prefabs/vbars2.gif"></td></tr>
</table></center>
.>>
.LP
.nf
   pl -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..

.fi
.SH EXAMPLE 3
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../prefabs/vbars3.gif"></td></tr>
</table></center>
.>>
.LP
.nf
  pl -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

.fi

.SH EXAMPLE 4
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../prefabs/vbars4.gif"></td></tr>
</table></center>
.>>
.nf
   pl -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.
.fi

.LP
#set FILE = "prefabs.html#examples"
#set TAG = "How to run these examples"
#include link

#include space

.SH DESCRIPTION
\fCvbars\fR is a 
#set FILE = "prefabs.html"
#set TAG = prefab
#include link
for producing bar graphs with vertical solid bars for one or two groups.
Two groups of values may be displayed if \fBy2\fR (etc) are used, as in the second example.
Error bars may be added above or below the bar graph, or error bars alone may be rendered.
By default the X axis is categories, but it may be continuous numeric if \fBxnumeric\fR is used
(for chronological data use the
#set FILE = "prefab_chron.html"
#set TAG = "chron prefab"
#include link
).
This prefab is based on
#set FILE = "bars.html"
#set TAG = "proc bars"
#include link
\0.

#include space 

.SH PARAMETERS
.IP
#set FILE = "prefabs.html#std"
#set TAG = "standard prefab parameters"
#include link
are all supported.  \fBdata\fR, \fBx\fR and \fBy\fR are required.
\fBy\fR values should be numeric and will determine the height of bars.
\fBx\fR values determine bar locations.

.br
.br
.IP
\fBcolor\fR is the 
#set FILE = color.html
#set TAG = color
#include link
of the first set of filled bars (default = orange)

.br
.br
.IP
\fBbarwidth\fR is the width of the filled bars.  This is a value in inches,
or may be given as \fCline\fR for very thin bars.

.br
.br
.IP
\fBerrcolor\fR is the error bar 
#set FILE = color.html
#set TAG = color
#include link
for the error bars associated with the first set of bars
(default = black).

.br
.br
.IP
\fBerrwidth\fR is the width of error bar tails in inches (default = 0.08)

.br
.br
.IP
\fBerrthick\fR is the thickness of the error bar lines (default = 0.5)

.br
.br
.IP
\fBerrunder\fR may be set to \fCyes\fR if error bars should be drawn "under"
the filled bars (only the upward error bar is thus visible).

.br
.br
.IP
\fBerronly\fR may be set to \fCyes\fR if error bars only are desired,
without any filled bars.

.br
.br
.IP
\fBxnumeric\fR may be specified as \fCyes\fR to signify that X values
are numeric and not categories.

.br
.br
.IP
\fBvals\fR may be specified as \fCyes\fR to indicate that the
numeric values should be displayed near the top of each bar.

.br
.br
.IP
\fBcrossover\fR may be specified as the value in Y where bars begin
to point downward instead of upward.  For instance, \fCcrossover=0\fR
is often useful when dealing with financial income, to show loss
using downward bars.

.br
.br
.IP
\fBcurve\fR may be given as \fCyes\fR, or as a
#set FILE = linedetails.html
#set TAG = linedetails
#include link
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.
The \fBorder\fR parameter may be set to the number of preceding data points 
to be considered when computing averages (default = 5).

.LP
The following parameters are used when displaying two groups of values.
The second example above illustrates.

.IP
\fBy2\fR, \fBcolor2\fR, \fBerr2\fR, and \fBerrcolor2\fR 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.

.br
.br
.IP
\fBsep\fR controls bar separation (default=0.15)

.br
.br
.IP
\fBname\fR and \fBname2\fR should be given as legend labels for the two groups

.br
.br
.IP
\fBlegend\fR controls the 
#set FILE = "attributetypes.html#xy"
#set TAG = "location"
#include link
of the legend.  Example: \fC"legend=1 0.5"\fR   Default is \fCmin+0.4 max\fR.


#include bottom
