Bubble Plot Error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bubble Plot Error

Brock-15
Hi Everyone,

I am trying to fiddle with GPL to create a bubble plot. After some trial and
error, I got the code to run without error, however, the bubbles do not
appear to be sized by my value.  They actually all appear to be the same
size.  Below is my code.  What can I do to resize the bubbles or make the
size of the bubbles more extreme?

Thanks,

Brock

GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=cost acad group
MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: cost=col(source(s), name("cost"))
  DATA: acad=col(source(s), name("acad"))
  DATA: group=col(source(s), name("group"), unit.category())
  DATA: yield=col(source(s), name("yield"))
  GUIDE: axis(dim(1), label("cost"))
  GUIDE: axis(dim(2), label("acad"))
  ELEMENT: point(position(cost*acad), size(yield), label(group))
END GPL.

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Bubble Plot Error

ViAnn Beadle
Use the aestheticMinimum function on a SCALE command for
linear(aesthetic(aesthetic.size) ... If you go to the help for the function,
you can even copy the example into your syntax

Experiment a bit, I'd start with a minimum of 4 pixels or so.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Brock
Sent: Sunday, October 25, 2009 11:59 AM
To: [hidden email]
Subject: Bubble Plot Error

Hi Everyone,

I am trying to fiddle with GPL to create a bubble plot. After some trial and
error, I got the code to run without error, however, the bubbles do not
appear to be sized by my value.  They actually all appear to be the same
size.  Below is my code.  What can I do to resize the bubbles or make the
size of the bubbles more extreme?

Thanks,

Brock

GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=cost acad group
MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: cost=col(source(s), name("cost"))
  DATA: acad=col(source(s), name("acad"))
  DATA: group=col(source(s), name("group"), unit.category())
  DATA: yield=col(source(s), name("yield"))
  GUIDE: axis(dim(1), label("cost"))
  GUIDE: axis(dim(2), label("acad"))
  ELEMENT: point(position(cost*acad), size(yield), label(group))
END GPL.

=====================
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

=====================
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