SGPLOT - SCATTER with ELLIPSE Graph

Q

How to generate SCATTER with ELLIPSE graphs with SAS SGPLOT procedure?

✍: FYIcenter.com

A

If you have a set of X-Y data pairs, you can present the data with a SCATTER graph and its boundary with an ELLIPSE graph.

The following SAS program shows a combination of SCATTER and ELLIPSE graphs on the example data set, sashelp.class, provided in the SAS University Edition:

proc sgplot data=sashelp.class;
  scatter x=height y=weight;
  ellipse x=height y=weight;

The result looks like the following:

SGPLOT Procedure - SCATTER and ELLIPSE Graphs
SGPLOT Procedure - SCATTER and ELLIPSE Graphs

 

SGPLOT - REG Graph

What Is SAS SGPLOT Procedure

SAS SGPLOT Procedure

⇑⇑ SAS - Frequently Asked Questions

2021-08-21, 2284🔥, 0💬