Clustered Boxplot (GPL)

Figure 1. GPL for clustered boxplot
* Open sample file Employee Data.sav.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=jobcat gender salary
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: jobcat=col(source(s), name("jobcat"), unit.category())
  DATA: gender=col(source(s), name("gender"), unit.category())
  DATA: salary=col(source(s), name("salary"))
  COORD: rect(dim(1,2), cluster(3))
  GUIDE: axis(dim(2), label("Salary"))
  GUIDE: axis(dim(3), label("Job Category"))
  ELEMENT: schema(position(bin.quantile.letter(gender*salary*jobcat)), color(gender))
END GPL.
Figure 2. Clustered boxplot
Clustered boxplot