SAS PLOT Procedure

Q

What is the SAS PLOT Procedure?

✍: FYIcenter.com

A

PLOT Procedure generates a character-based plot with a given pair of two variables.

Here is a simple example of a PLOT Procedure:

DATA Sample;
  Weight = 0;
  DO Id = 1 to 6;
    Weight = RAND('UNIFORM', 60, 90);
    OUTPUT;
  END;

PROC PLOT DATA=Sample; /* "Sample" specifies the data set to use */
  PLOT Weight*Id='*'   /* Specifies vertical/horizontal variables */
    / VPOS=15 HPOS=60; /* Specifies vertical/horizontal size of the plot */

If you run the above SAS program, you will get the following plot in the results:

Plot of Weight*Id.  Symbol used is '*'.

Weight |
    90 +                                  *
       | *
       |
    80 +
       |
       |
    70 +
       |            *          *                     *
       |                                                        *
    60 +
       --+----------+----------+----------+----------+----------+---
         1          2          3          4          5          6

                                   Id

 

SAS SGPLOT Procedure

SAS MEANS Procedure

SAS Language Basics

⇑⇑ SAS - Frequently Asked Questions

2021-06-19, 1907🔥, 0💬