Assigning Data to Roles

You can subset the data in the input data set by applying an SQL WHERE clause. In the Where string box, enter your valid SQL syntax. Operands that are character strings must be enclosed in single or double quotation marks. To view this WHERE clause with the resulting graph, select the Include as footnote check box.
To run the Bar Chart task, you must assign a column to the Category variable role.
Option Name
Description
Roles
Category variable
specifies the variable that classifies the observations into distinct subsets.
Response variable
specifies a numeric response variable for the plot.
Group variable
specifies a variable that is used to group the data.
URL variable
specifies a character variable that contains URLs for web pages to be displayed when parts of the plot are selected within an HTML page.
BY variable
creates a separate graph for each BY group.
Direction
You can create either a vertical or horizontal bar chart.
Group Layout
Cluster
displays group values as separate adjacent bars that replace the single category bar. Each set of group values is centered at the midpoint tick mark for the category.
Stack
overlays group values without any clustering. Each group is represented by unique visual attributes derived from the GraphData1... GraphDatan style elements in the current style.
Statistics
Note: The Statistics options are not available in these cases:
  • You did not assign a column to the Response variable role. If you do not assign a response variable, the default statistic is frequency.
  • You selected Stack for the group layout. In this case, the default statistic is sum.
Mean
calculates the mean of the response variable.
Sum
calculates the sum of the response variable.
Limits
Limits
specifies which limit lines to display. Limits are displayed as heavier line segments with a serif at the end that extends from each bar. Limit lines are displayed only if you select the Mean statistic.
Limit statistic
specifies the statistic for the limit lines.
Limit multiplier
specifies the number of standard units for the limit lines. By default, this value is 1.