Bubble Plot (GPL)

Figure 1. GPL for bubble plot
* Open sample file Employee Data.sav.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=salbegin salary prevexp
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: salbegin=col(source(s), name("salbegin"))
  DATA: salary=col(source(s), name("salary"))
  DATA: prevexp=col(source(s), name("prevexp"))
  SCALE: linear(aesthetic(aesthetic.size), 
                aestheticMinimum(size."5px"), aestheticMaximum(size."35px"))
  GUIDE: axis(dim(2), label("Current Salary"))
  GUIDE: axis(dim(1), label("Beginning Salary"))
  GUIDE: legend(aesthetic(aesthetic.size), label("Previous Experience (months)"))
  ELEMENT: point(position(salbegin*salary), size(prevexp))
END GPL.
Figure 2. Bubble plot
Bubble plot