COLVAR and ROWVAR Keywords (XGRAPH 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

XGRAPH CHART=([COUNT] [BAR]) BY educ [c] BY gender [c]
  /PANEL COLVAR=minority.
  • There are two columns in the resulting paneled chart, one for minorities and one for non-minorities.
  • Because there is only one paneling variable, there are only as many panels as there are variable values. Therefore, there are two panels.
    XGRAPH CHART=([COUNT] [BAR]) BY educ [c] BY gender [c]
      /PANEL COLVAR=minority ROWVAR=jobcat.
  • There are two columns in the resulting paneled chart (for the minority variable values) and three rows (for the jobcat variable values).