SGPLOT - BUBBLE Graph

Q

How to generate BUBBLE Graphs with SAS SGPLOT procedure?

✍: FYIcenter.com

A

If you have a set of X-Y data pairs and each pair has a numeric attribute, you can present the data with a BUBBLE graph. The bubble size is used to represent the attribute.

The following SAS program shows a BUBBLE graph on the example data set, sashelp.class, provided in the SAS University Edition:

proc sgplot data=sashelp.class;
  bubble x=height y=weight size=age / group=sex;

The result looks like the following:

SGPLOT Procedure - BUBBLE Graph
SGPLOT Procedure - BUBBLE Graph

 

⇒ SGPLOT - HBOX Graph

⇐ SGPLOT - REG Graph

⇑ SAS SGPLOT Procedure

⇑⇑ SAS - Frequently Asked Questions

2021-08-11, 1533👍, 0💬