SGPLOT Procedure

Requirement: At least one plot statement is required.
Global statements: BY, FORMAT, LABEL, ODS GRAPHICS, TITLE and FOOTNOTE, WHERE

Syntax

PROC SGPLOT < option(s)>;
BAND X= variable | Y= variable
UPPER= numeric-value | numeric-variable LOWER= numeric-value | numeric-variable
BUBBLE X= variable Y= variable SIZE= numeric-variable </ option(s)>;
DENSITY response-variable </option(s)>;
DOT category-variable </option(s)>;
ELLIPSE X= numeric-variable Y= numeric-variable </option(s)>;
HBAR category-variable < /option(s)>;
HBARPARM CATEGORY= category-variable RESPONSE= numeric-variable </ option(s)>;
HBOX analysis-variable </option(s)>;
HIGHLOW X= variable | Y= variable
HIGH= numeric-variable LOW= numeric-variable
HISTOGRAM response-variable < /option(s)>;
HLINE category-variable < /option(s)>;
INSETtext-string-1<... “text-string-n”> | (label-list) < /option(s)>;
LINEPARM X= numeric-value |numeric-variable
Y= numeric-value |numeric-variable
SLOPE= numeric-value |numeric-variable
LOESS X= numeric-variable Y= numeric-variable </option(s)>;
NEEDLE X= variable Y= numeric-variable </option(s)>;
PBSPLINE X= numeric-variable Y= numeric-variable </option(s)>;
REFLINE value(s) </option(s)>;
REG X= numeric-variable Y= numeric-variable </option(s)>;
SCATTER X= variable Y= variable </option(s)>;
SERIES X= variable Y= variable </option(s)>;
STEP X= variable Y= variable </option(s)>;
VBAR category-variable < /option(s)>;
VBARPARM CATEGORY= category-variable RESPONSE= numeric-variable </ option(s)>;
VBOX analysis-variable </option(s)>;
VECTOR X= numeric-variable Y= numeric-variable </option(s)>;
VLINE category-variable < /option(s)>;
WATERFALL CATEGORY=variable RESPONSE= numeric-variable </ option(s)>;