Examples (GRAPH command)

GRAPH /BAR=SUM (MURDER) BY CITY. 
  • This command generates a simple (default) bar chart showing the number of murders in each city.
  • The category axis (x axis) labels are defined by the value labels (or values if no value labels exist) of the variable CITY.
  • The default span (2) and sigma value (3) are used.
  • Since no BY variable is specified, the x axis is labeled by sequence numbers.