Hi All,
Is it at all possible, programmatically, to change aesthetics
(size and color) of data labels on scatter graphs built from GGRAPH/GPL. Nothing
in the documentation suggest this is possible?
For example, the data points split by gender can be controlled
by color function but there are no equivalent functions to control labels aesthetics?
(labeling by caseid is just for demonstration, but I’m trying to control font
size depending on some metric, alike to words clouds)
temp.
select if id<20.
GGRAPH
/GRAPHDATASET
NAME="graphdataset" VARIABLES=salbegin salary gender id
/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:
gender=col(source(s), name("gender"), unit.category())
DATA:
id=col(source(s), name("id"), unit.category())
GUIDE: axis(dim(1),
label("Beginning Salary"))
GUIDE: axis(dim(2),
label("Current Salary"))
GUIDE:
legend(aesthetic(aesthetic.color.exterior), label("Gender"))
SCALE:
cat(aesthetic(aesthetic.color.exterior), include("f", "m"))
ELEMENT:
point(position(salbegin*salary), color.exterior(gender), label(id))
END GPL.
Many thanks in advance,
Jignesh
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD