COLVAR and ROWVAR Keywords (GRAPH command)

The COLVAR and ROWVAR keywords identify the column and row variables, respectively. Each category in a column variable appears as a vertical column in the resulting chart. Each category in a row variable appears as a horizontal row in the resulting chart.

  • If multiple variables are specified for a keyword, the COLOP and ROWOP keywords can be used to change the way in which variable categories are rendered in the chart.
  • The ROWVAR keyword is not available for population pyramids.

varlist. The list of variables used for paneling.

Examples

GRAPH
  /BAR(SIMPLE)=COUNT BY educ
  /PANEL COLVAR=gender COLOP=CROSS
  • There are two columns in the resulting paneled chart, one for each gender.
  • Because there is only one paneling variable, there are only as many panels as there are variable values. Therefore, there are two panels.
    GRAPH
      /BAR(SIMPLE)=COUNT BY educ
      /PANEL COLVAR=minority ROWVAR=jobcat.
  • There are two columns in the resulting paneled chart (for the gender variable values) and three rows (for the jobcat variable values).