Show Menu
Cheatography

SAS sgplot Cheat Sheet (DRAFT) by [deleted]

This is a draft cheat sheet. It is a work in progress and is not finished yet.

General Syntax

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

Basic Types

Basic
scatter, series, step, band, needle, vector
Fit and confidence
loess, regres­sion, penalized B-Spline curves, ellipses
Distri­bution
box plots, histog­rams, normal- and kernel density estimates
Catego­riz­ation
dot plots, bar charts, line plots
Basic and Fit and confidence plots may be used together, otherwise different categories must not be mixed. Box plots cannot be combined.

Plot Axes

Axis Statements
XAXIS, X2AXIS, YAXIS, Y2AXIS
Axis Types
Discrete, Linear, Logari­thmic, Time