Previous Page | Next Page

The GPLOT Procedure

Example 2: Labeling and Sizing Plot Bubbles


Procedure features:

BUBBLE statement options:

BCOLOR

BLABEL

BSIZE

HAXIS=

VAXIS=

VMINOR

Other features:

GOPTIONS statement option:

BORDER

AXIS statement

Sample library member: GPLBUBL2

[Labeled and Sized Bubble Plot]

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
goptions reset=all border;
 Note about code
data jobs;
   length eng $5;
   input eng dollars num;
   datalines;
Civil 27308 73273
Aero  29844 70192
Elec  22920 89382
Mech  32816 19601
Chem  28116 25541
Petro 18444 34833
;
 Note about code
title1 "Member Profile";
title2 "Salaries and Number of Member Engineers";
 Note about code
axis1 label=none
      offset=(5,5);
axis2 order=(0 to 40000 by 10000)
      label=none;
 Note about code
proc gplot data=jobs;
   format dollars dollar9. num comma7.0;
   bubble dollars*eng=num / haxis=axis1
                            vaxis=axis2
                            vminor=1
                            bcolor=darkred
                            blabel
                            bsize=3;
run;
quit;

Previous Page | Next Page | Top of Page