Generate bubble plot with second vertical axis. In the BUBBLE statement, HAXIS= specifies the AXIS1 definition and
VAXIS= scales the left axis. In the BUBBLE2 statement, VAXIS= scales the right
axis. Both axes represent the same range of monetary values. The BUBBLE and
BUBBLE2 statements ensure that the bubbles generated by each statement are
identical by coordinating specifications on BCOLOR=, which colors the bubbles;
BSIZE=, which increases the size of the scaling factor to 12; and CAXIS=,
which colors the axis lines and all major and minor tick marks. Axis labels
and major tick mark values use the default color, which is the first color
in the colors list.
proc gplot data=reflib.jobs2;
format dollars dollar7. num yen comma9.0;
bubble dollars*eng=num / haxis=axis1
vaxis=10000 to 40000 by 10000
hminor=0
vminor=1
blabel
bfont=swissi
bcolor=red
bsize=12
caxis=blue;
bubble2 yen*eng=num / vaxis=1250000 to 5000000 by 1250000
vminor=1
bcolor=red
bsize=12
caxis=blue;
run;
quit;