Chapter Contents

Previous

Next
The GPLOT Procedure

Example 2: Labeling and Sizing Plot Bubbles


Procedure features:
BUBBLE statement options:
BCOLOR=
BFONT=
BLABEL=
BSIZE=
CAXIS=
HAXIS=
VAXIS=
VMINOR
Other features:
AXIS statement
Data set: REFLIB.JOBS
Sample library member: GR21N02

[IMAGE]

This example modifies the code in Example 1. It shows how BUBBLE statement options control the appearance of bubbles and their labels. It also shows how AXIS statements can modify the plot axes.
 Note about code
libname reflib 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
         colors=(black blue green red)
         ftitle=swissb ftext=swiss htitle=6 htext=4;
 Note about code
title1 'Member Profile';
title2 h=4 'Salaries and Number of Member Engineers';
footnote1 h=3 j=r 'GR21N02 ';
 Note about code
axis1 label=none
      offset=(5,5)
      width=3
      value=(height=4);
axis2 order=(0 to 40000 by 10000)
      label=none
      major=(height=1.5)
      minor=(height=1)
      width=3
      value=(height=4);
 Note about code
proc gplot data=reflib.jobs;
   format dollars dollar9. num comma7.0;
   bubble dollars*eng=num / haxis=axis1
                            vaxis=axis2
                            vminor=1
                            bcolor=red
                            blabel
                            bfont=swissi
                            bsize=12
                            caxis=blue;
run;
quit;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.