2-D Dot Plot (GPL)

Figure 1. GPL for 2-D dot plot
* Open sample file customer_subset.sav.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=region income
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: region = col(source(s), name("region"), unit.category())
  DATA: income = col(source(s), name("income"))
  GUIDE: axis(dim(1), label("Income"))
  GUIDE: axis(dim(2), label("Region"))
  ELEMENT: point.dodge.symmetric(position(bin.dot(income*region)))
END GPL.
Figure 2. 2-D dot plot
2-D dot plot
Figure 3. GPL for alternate 2-D dot plot
* Open sample file customer_subset.sav.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=region income
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: region = col(source(s), name("region"), unit.category())
  DATA: income = col(source(s), name("income"))
  GUIDE: axis(dim(1), label("Region"))
  GUIDE: axis(dim(2), label("Income"))
  ELEMENT: point.dodge.symmetric(position(bin.dot(region*income, dim(2))))
END GPL.
Figure 4. Alternate 2-D dot plot
Alternate 2-D dot plot