Chapter Contents |
Previous |
Next |
The GPLOT Procedure |
Requirements: | You cannot use the BUBBLE2 statement alone. You can use it only with a BUBBLE or PLOT statement. At least one plot request is required. |
Global statements: | AXIS, FOOTNOTE, TITLE |
You can use statement options to control right vertical axis scaling, draw reference lines on the right vertical axis, control the display of the bubbles, and specify annotation.
In addition, you can use global statements to modify
the axes (AXIS statement), and add text to the graph (TITLE, NOTE, and FOOTNOTE
statements). You can also use the Annotate data set to enhance the plot.
BUBBLE2 plot-request(s) </option(s)>; |
option(s) can be one or more options from any or all of the following categories:
BCOLOR=bubble-color | |
BFONT=font | |
BLABEL | |
BSCALE=AREA | RADIUS | |
BSIZE=multiplier |
ANNOTATE=Annotate-data-set | |
CAXIS=axis-color | |
CFRAME=background-color | |
CTEXT=text-color | |
FRAME | NOFRAME | |
GRID | |
NOAXIS |
AUTOVREF | |
CVREF=reference-line-color | |
LVREF=line-type | |
VAXIS=value-list | AXIS<1...99> | |
VMINOR=number-of-minor ticks | |
VREF=value-list | |
VREVERSE | |
VZERO |
Required Arguments |
Options |
AUTOHREF | |
CHREF= | |
DESCRIPTION= | |
HAXIS= | |
HMINOR= | |
HREF= | |
HZERO= | |
LHREF= | |
NAME= |
See BUBBLE Statement for complete descriptions of options used with the BUBBLE2 statement.
Coordinating BUBBLE and BUBBLE2 Plot Requests |
In the BUBBLE2 statement, either y-variable or bubble-size may differ from the variables in the BUBBLE statement. Here are some possible combinations of plot requests for BUBBLE and BUBBLE2 statement pairs and how they affect the plot:
bubble y*x=s; bubble2 y2*x=s;
These plot requests generate a plot in which both sets of bubbles have the same value (size) but different locations on the graph.
bubble y*x=s; bubble2 y*x=s2;
The resulting plot has two identical vertical axes and two sets of concentric bubbles of different sizes.
bubble y*x=s; bubble2 y2*x=s2;
These plot requests produce the equivalent of an overlay plot in which two different sets of bubbles plotted against different vertical axes are displayed on the same graph.
The plot requests on the BUBBLE and BUBBLE2 statements must be evenly matched, for example:
bubble y*x=s b*a=c; bubble2 y2*x=s b2*a=c2;
These statements produce two graphs each with two vertical axes. The first pair of plot requests (Y*X=S and Y2*X=S) produce one graph in which the variable X is plotted on the horizontal axis, the variable Y is plotted on the left axis, and the variable Y2 is plotted on the right axis. In this pair, the value of S is the same for both requests. The second pair of plot requests (B*A=C and B2*A=C2) produce another graph in which the variable A is plotted on the horizontal axis, the variable B is plotted on the left axis, and the variable B2 is plotted on the right axis.
Any modifications to horizontal axes specifications must be identical for both statements; if they are different, the BUBBLE2 axis specification is ignored.
If the scale of values for the left and right vertical axes is the same and you want both axes to represent the same range of values, specify the range with a VAXIS= option in both the BUBBLE and BUBBLE2 statements.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.