CLABELS Subcommand (CTABLES command)

The CLABELS subcommand controls the location of category labels.

/CLABELS {AUTO                  }
         {ROWLABELS= {OPPOSITE} }
                     {LAYER   }  
         {COLLABELS= {OPPOSITE} }
                     {LAYER   }

By default, category labels are nested under the variables to which they belong. Category labels for row and column variables can be moved to the opposite dimension or to the layers. If labels exist in both dimensions, only one dimension, row labels or column labels, can be moved; they cannot be swapped.

Example

CTABLES
  /TABLE (CONFINAN + CONEDUC + CONBUS + CONMEDIC + CONPRESS + CONTV )
Figure 1. Multiple variables stacked in rows with default category position
Multiple variables stacked in rows with default category position
  • Six variables are stacked in the rows, and their category labels are stacked under them.
    CTABLES
      /TABLE (CONFINAN + CONEDUC + CONBUS + CONMEDIC + CONPRESS + CONTV )
      /SLABELS VISIBLE=NO   /CLABELS ROWLABELS=OPPOSITE
    Figure 2. Multiple variables stacked in rows with categories in columns
    Multiple variables stacked in rows with categories in columns
  • The category labels are moved to the columns. Where variables are stacked, as in this example, the value labels for all of the variables must be exactly the same to allow for this format. Additionally, all must have the same category specifications, and data-dependent sorting is not allowed.