.ig >>
<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>
.>>

.TH vbars_prefab PL "08-JAN-2002   PL ploticus.sourceforge.net"

.SH EXAMPLE 1
.LP
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/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="../gallery/prefab_img/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="../gallery/prefab_img/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="../gallery/prefab_img/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
.ig >>
<a href="prefabs.html#examples">
.>>
\0How to run these examples
.ig >>
</a>
.>>

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

.SH DESCRIPTION
\fCvbars\fR is a 
.ig >>
<a href="prefabs.html">
.>>
\0prefab
.ig >>
</a>
.>>
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
.ig >>
<a href="prefab_chron.html">
.>>
\0chron prefab
.ig >>
</a>
.>>
).
This prefab is based on
.ig >>
<a href="bars.html">
.>>
\0proc bars
.ig >>
</a>
.>>
\0.

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

.SH PARAMETERS
.IP
.ig >>
<a href="prefab_stdparms.html">
.>>
\0Standard prefab parameters
.ig >>
</a>
.>>
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 
.ig >>
<a href="color.html">
.>>
\0color
.ig >>
</a>
.>>
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 
.ig >>
<a href="color.html">
.>>
\0color
.ig >>
</a>
.>>
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
.ig >>
<a href="linedetails.html">
.>>
\0linedetails
.ig >>
</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.
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 
.ig >>
<a href="attributetypes.html#xy">
.>>
\0location
.ig >>
</a>
.>>
of the legend.  Example: \fC"legend=1 0.5"\fR   Default is \fCmin+0.4 max\fR.


.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="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>
.>>
