## stack prefab

Welcome Gallery Handbook

Manual page for stack_prefab(PL)

## EXAMPLE 1

       pl -prefab stack data=data10 x=1 y=2 y2=4 y3=6 y4=8 xlbl=Months \
        name="Group A" name2="Group B" name3="Group C" name4="Group D"

       data10 file:
    	0	100	2	100	4	100	3	100	4
    	1.5	92	4	94	7	87	6	86	5
    	3	89	4	92	8	78	6	74	4
    	..etc.

How to run these examples

## DESCRIPTION

`stack` is a prefab for producing stacked bar graphs with one to four levels of stacking.`` Based on proc bars .``

## PARAMETERS

  standard prefab parameters are all supported except err. data, x and y are required.`` y values should be numeric and will determine the height of bars.`` x values determine bar locations; by default they are assumed to be categories, but thay can be continuous numeric values if xnumeric is specified.``

  name is a short description for the first level, for inclusion in a legend.``

  y2, name2, color2 may be specified for a second level.``

  y3, name3, color3 may be specified for a third level.``

  y4, name4, color4 may be specified for a fourth level.``

  xnumeric may be specified as `yes` to signify that X values are numeric and not categories.``

  legend controls the location of the legend. Example: `"legend=1 0.5"`
  data display engine
  Copyright Steve Grubb

Markup created by unroff 1.0, `` `` September 13, 2001.