StatCrunch logo (home)

< StatCrunch Examples
Charting values across multiple columns
This tutorial covers the general procedure in StatCrunch for charting data across multiple columns. To begin, load the Pairwise Counts For Two Categorical Variables data set. This data set consists of the two-way frequency table produced in Creating a contingency table loaded directly into the StatCrunch data table. In this case, the table shows the six a values are paired with four c values and two d values. The four b values are paired with two c values and two d values. The StatCrunch charting procedure is a flexible charting tool designed to work with data in a variety of numerical formats including the summary form of this data set.

Creating a chart with horizontal bars
To construct a bar chart of these summary counts, choose the Graph > Chart > Columns menu option. Select the c and d columns containing the counts, select var1 under Row labels in and click Compute!. The resulting chart below shows the bar labels drawn on the y-axis with the bars drawn horizontally to the appropriate values. As the chart legend indicates, the red bars show the values from the c column, and the blue bars show the values from the the d column.
Constructing a chart with vertical stacked bars
StatCrunch offers a number of other possibilities under the Plot menu for displaying the information in the chart. These possibilities include points, connected lines, points with connected lines, split vertical bars, stacked vertical bars, split horizontal bars (default), stacked horizontal bars, stacked values as areas and stacked percentages as areas. For this example, consider changing the display to stacked vertical bars. In the window containing the resulting chart above, choose Options > Edit to reopen the chart columns dialog window. Under Plot, choose vertical bars (stacked) and click Compute!. The resulting chart below shows the bar labels drawn on the x-axis with stacked bars drawn vertically to the appropriate values. The chart legend also indicates the same color scheme as in the previous chart.

Always Learning