The normbar glyph creates a set of stacked bars with each bar in the stack with a length equal to the data value provided in a column of the statsDFrame data.frame. Since the stacked bar diagrams contain multiple bars, the data in the statsDFrame must provide the data in consecutive columns. The first column in the series is specified in panelDesc data.frame in col1. The last column in the sequence is specified in col2. The stacked bars can contain from 2 to 9 bars.
The normbar graphic converts the length for each bar to values that will sum up to 100. Each normbar is drawn with bars fram the left to right edge of the panel. Each bar is filled with the same color as the area the data represents. The transparency of the color varies from left to right and a line is used to separate each bar for an area.
None
Jim Pearson, StatNet Consulting, LLC, Gaithersburg, MD
The stacked normal bars only use the panelDesc col1, col2, lab1, lab2, lab3, lab4, refVal, and refTxt variable. The glyph uses the R draw rectangle function to draw and fill each part of the stack.
In the details data.frames there is a SNBar.varht (a logical variable) that is used to indicate to the gryphic whether to use variable height bars in the gryphic or not. By default the value is set to FALSE. When set to TRUE, all Center Segmented Stacked Bar Charts will have their bars vary in height from the left to the right.
The statsDFrame and panelDesc data.frames reside in the global environment and automatically accessible to the process along with several other major structures.
micromapST