A
ACROSS option, DISCRETELEGEND statement 37
annotations 13, 26, 137, 146–147
ARROWHEADSHAPE option, VECTORPLOT statement 60
aspect ratio, uniform 50
attribute maps 13, 24, 137
discrete 138–140
range 141–143
automatic graphs
GTL used by 5
SAS procedures for 4
axes 13, 14, 45, 120–127
axis table for 62
common, for multiple cells 42, 107
discrete axis 120–121, 122, 125
in LAYOUT DATALATTICE statement 87
in LAYOUT DATAPANEL statement 96
interval axes 67, 68, 80
linear axis 120–121, 122, 124
log axis 120–121, 122, 126
number of 23, 120
options for 39, 49–50
removing label for 38–39
time axis 120–121, 122, 127
types of 23, 120–122
uniform, for multiple cells 41
uniform aspect ratio for, ensuring 50
AXISTABLE statement 62
B
background 14
BANDPLOT statement 55
bands
See BANDPLOT statement
See confidence band
See MODELBAND statement
BARCHART statement 61
BARWIDTH option 92, 102
GROUPDISPLAY option 61
BARWIDTH option, BARCHART statement 92, 102
Base SAS procedures 4, 5
BASELINEINTERCEPT option, NEEDLEPLOT statement 59
basic plots 14–15, 51–60
BEGINGRAPH statement 12, 17
BIHISTOGRAM3DPARM statement (bivariate histogram) 78
BLOCKPLOT statement 81
BOXPLOT statement 39–40, 67, 68
BREAK option, STEPPLOT statement 54
BUBBLEPLOT statement 58
C
categorical plots 15, 61–64
CATEGORY parameter, BARCHART statement 61
cells 14, 32
See also multi-cell graphs
See also single-cell graphs
CLASS option, AXISTABLE statement 62
classification panels 17, 115
See also LAYOUT DATALATTICE statement
See also LAYOUT DATAPANEL statement
See also SGPANEL procedure
CLASSVARS option, LAYOUT DATAPANEL statement 95–96, 97
CLI option, REGRESSIONPLOT statement 69, 79
CLM option, LOESSPLOT statement 70
color graphs 7
COLORRESPONSE parameter, HEATMAPPARM statement 74
COLUMN2AXIS statement 120
COLUMN2HEADERS statement 109
COLUMNAXES statement 42, 107, 108
COLUMNAXIS statement 42, 120
COLUMNAXISOPTS option
LAYOUT DATALATTICE statement 89
LAYOUT DATAPANEL statement 98
COLUMNDATARANGE option
LAYOUT DATALATTICE statement 90
LAYOUT DATAPANEL statement 100, 101
LAYOUT LATTICE statement 41, 107, 108
UNIONALL as default value for 88, 89
COLUMNS option
LAYOUT DATAPANEL statement 99, 100, 101, 102, 103
LAYOUT LATTICE statement 40
COLUMNVAR parameter, LAYOUT DATALATTICE statement 21, 86–87, 88, 89, 90, 91
COLUMNWEIGHT option
LAYOUT DATALATTICE statement 87, 91
LAYOUT DATAPANEL statement 96, 101
conditionals 13, 25, 156
confidence band 69, 70, 71, 79
confidence ellipse 72
CONTINUOUSLEGEND statement 24, 128, 130
CONTOURPLOTPARM statement 76
CONTOURTYPE option, CONTOURPLOTPARM statement 76
CURVELABEL option, SERIESPLOT statement 53
custom graphs 3
GTL and ODS Graphics for 5, 153
ODS Graphics Designer for 6
SG procedures for 6
custom styles 7
CYCLEATTRS option, LAYOUT PROTOTYPE statement 92, 102
D
data sets
annotations based on 13, 26, 137, 146–147
specifying 11–12, 32, 33
used in examples 7
data skins (decorative skins) 7–8, 57, 58, 61
DATALABEL option, SCATTERPLOT statement 52
DATALABELPOSITION option, NEEDLEPLOT statement 59
DATASKIN option
BARCHART statement 61
BUBBLEPLOT statement 58
HIGHLOWPLOT statement 57
DATATRANSPARENCY option, ELLIPSEPARM statement 75
decorative skins (data skins) 7–8, 57, 58, 61
DENSITYPLOT statement 34–37, 66
Designer
See ODS Graphics Designer
destinations 3, 153
See also HTML destination
See also LISTING destination
See also ODS LISTING statement
default style for 5, 13, 151
options for 153
resolution for 43
discrete attribute maps 13, 24, 137, 138–140
discrete axis 120–121, 122, 125
DISCRETEATTRMAP statement 24, 138–140
DISCRETELEGEND statement 23–24, 37, 52, 80, 128, 129
DISCRETEOPTS option, axes 125
DISPLAY option
axes 121, 123
ELLIPSE statement 72
Distribution of Mileage example 31, 44
distribution plots 15, 31, 44, 65–68, 80
DMS mode, ODS Graphics settings in 4
DRAW* statements 13, 25–26, 137, 144–145
DRAWTEXT statement 144–145
DROPLINE statement 73
DYNAMIC statement 155
dynamic variables 13, 24–25, 155
E
ELLIPSE statement 72
ELLIPSEPARM statement 72, 75
ENDGRAPH statement 12
ENDLAYOUT statement 12, 33
entries 13, 14, 22
See also specific ENTRY statements
ENTRY statement 22, 111, 131, 133–134
ENTRYFOOTNOTE statement 22, 38, 131, 132
ENTRYTITLE statement 12, 22, 38, 131, 132
equated plots 18–19, 50, 76
examples
distribution plots 31, 44, 80
lab values by study week 112
LFT safety panel, baseline versus study 113
model fit plot 79
most frequent on-therapy adverse events 114–115
survival plot 81
expressions 13, 25
F
FILLATTRS option
BARCHART statement 152
VALUE statement 140
FILLEDOUTLINEMARKERS option, SCATTERPLOT statement 133
fit plots 15, 69–72, 79
footnotes 13, 14, 22, 32
See also ENTRYFOOTNOTE statement
forward slash (/), preceding options 37
function evaluation 157–158
G
Graph Template Language
See GTL
GRAPHDATA1-GRAPHDATA12 style elements 24, 137
GRAPHDATADEFAULT style element 25, 35
GRAPHFIT style element 35, 66
GRAPHFIT2 style element 36, 66
graphs
See also layouts
See also multi-cell graphs
See also plots
See also single-cell graphs
automatic 4, 5
color graphs 7
components of 12–14, 31–32, 45, 119
creating 11–12, 31–32, 49–50
custom 3, 5, 6, 153
gray-scale graphs 7
principles of effective graphics for 7–8
resolution of 43
size of 43
types of 13–14
GRAPHTITLETEXT style element 25
gray-scale graphs 7
GRIDDISPLAY option, axes 121
GROUP option, BOXPLOT statement 68
GROUPDISPLAY option, BARCHART statement 61
GTL (Graph Template Language)
components of 12–14
features of 5, 11
viewing from ODS Graphics Designer 6
GTL template
See templates
H
HALIGN option
DISCRETELEGEND statement 37
ENTRY* statements 131, 132, 133–134
ENTRYFOOTNOTE statement 38
HEADERLABELDISPLAY option, LAYOUT DATALATTICE statement 88
HEATMAPPARM statement 74
HEIGHT option, ODS GRAPHICS statement 43
HIGH parameter, HIGHLOWPLOT statement 56
HIGHCAP option, HIGHLOWPLOT statement 57
HIGHLABEL option, HIGHLOWPLOT statement 56, 57
HIGHLOWPLOT statement 56, 57
HISTOGRAM statement 12, 33, 35–36, 65, 80
See also BIHISTOGRAM3DPARM statement
HTML destination
default style for 25, 151
in DMS mode 4
options for 153
resolution for 43
HTMLBLUE style 25, 151
I
IF-THEN-ELSE statement 25, 156
IMAGE_DPI option, ODS LISTING statement 43
inline DRAW statements
See DRAW* statements
INNERMARGIN statement
axis table in 62
block plot in 81
interval axes 67, 68, 80
K
kernel density curves 34–35
KERNEL() option, DENSITYPLOT statement 35, 66
L
LABEL option, axes 121
LABELATTRS option
axes 122
HIGHLOWPLOT statement 57
LABELFITPOLICY option, axes 121
LABELPOSITION option, axes 121
LAYOUT DATALATTICE statement 21, 85, 86–94
column only 89, 90
components of 86–87
LAYOUT PROTOTYPE statement in 22, 86, 88
multi-page output for 94
options for 87
proportional 91
row and column 88, 113
row only 93
with sidebar 87, 92
LAYOUT DATAPANEL statement 21–22, 85, 95–103
components of 95–96
LAYOUT PROTOTYPE statement in 22, 95, 97
multi-page output for 103
options for 96
with one class variable 98, 112
with one class variable and multiple columns 99, 100, 101
with sidebar 96, 102
with two class variables 97
LAYOUT GRIDDED statement 20, 85, 111
LAYOUT LATTICE statement 20, 42, 45, 85, 104–110
column lattice 109, 114–115
components of 104–105
LAYOUT OVERLAY statement in 104–105, 106
nesting 106, 110
options for 105
row lattice 39–40, 106, 107, 108
LAYOUT OVERLAY statement 17–18, 38–39, 45
in LAYOUT LATTICE statement 104–105, 106
options for 49–50, 121, 123
LAYOUT OVERLAY3D statement 19, 50, 77, 78
LAYOUT OVERLAYEQUATED statement 18–19, 50, 76
LAYOUT PROTOTYPE statement 22, 85
CYCLEATTRS option 92, 102
in LAYOUT DATALATTICE statement 22, 86, 88
in LAYOUT DATAPANEL statement 22, 95, 97
LAYOUT REGION statement 18, 64
layouts 12–13, 16–17, 45
See also specific LAYOUT statements
LEGENDITEM statement 129
legends 13, 14
See also CONTINUOUSLEGEND statement
See also DISCRETELEGEND statement
creating 37–38, 128–130
in sidebar 87, 92
types of 23–24, 128
line mode, ODS Graphics settings in 4
linear axis 120–121, 122, 124
LINEAROPTS option, axes 124
LINEATTRS option
DENSITYPLOT statement 36, 66
HIGHLOWPLOT statement 56
LINECHART statement 63
VALUE statement 139
VECTORPLOT statement 60
LINECHART statement 63
LINEPARM statement 75
LISTING destination
default style for 25
in line mode 4
options for 153
resolution for 43
LISTING style 25
LOCATION option, DISCRETELEGEND statement 37
LOESSPLOT statement 70
log axis 120–121, 122, 126
LOGOPTS option, axes 126
LOW parameter, HIGHLOWPLOT statement 56
LOWLABEL option, HIGHLOWPLOT statement 56
M
macro variables 13, 24–25, 154
MARKERATTRS option, NEEDLEPLOT statement 59
MARKERCHARACTER option, SCATTERPLOT statement 52
MODELBAND statement 69, 71, 79
multi-cell classification panels 17, 115
See also LAYOUT DATALATTICE statement
See also LAYOUT DATAPANEL statement
See also SGPANEL procedure
multi-cell graphs
creating 31–32, 85
layouts for 17, 85
MVAR statement 154
N
NAME option, DENSITYPLOT statement 37
NEEDLEPLOT statement 59
NMVAR statement 154
NOBORDER option, ODS GRAPHICS statement 43
normal density curves 34–35
O
ODS (Output Delivery System) 3
ODS (Output Delivery System) destinations 3, 153
See also HTML destination
See also LISTING destination
See also ODS LISTING statement
default style for 5, 13, 151
options for 153
resolution for 43
ODS (Output Delivery System) Graphics 3–4
ODS (Output Delivery System) Graphics Designer 6
ODS (Output Delivery System) Styles 25
See also styles
ODS GRAPHICS statement 43, 153
ODS LISTING statement 43, 152
OFFSETMAX option, axes 121–122
OFFSETMIN option, axes 121–122, 123
ORDER option
LAYOUT GRIDDED statement 111
LAYOUT LATTICE statement 109
ORIENT option, BOXPLOT statement 67
Output Delivery System
See ODS
P
parametric plots 16, 74–76
PBSPLINEPLOT statement (penalized B-spline plot) 71
PIECHART statement 64
plot attributes 13
plots 12, 45
See also specific plot statements
basic plots 14–15, 51–60
categorical plots 15, 61–64
distribution plots 15, 31, 44, 65–68, 80
equated plots 18–19, 50, 76
fit plots 15, 69–72, 79
list of 14–16
parameters for 49–50
parametric plots 16, 74–76
3-D plots 16, 50, 77–78
R
range attribute maps 13, 24, 137, 141–143
RANGE statement 141–143
RANGEATTRMAP statement 24, 141–143
RANGEATTRVAR statement 142, 143
RANGECOLOR option, RANGE statement 142
RANGECOLORMODEL option, RANGE statement 143
REFERENCELINE statement 73, 113
REGRESSIONPLOT statement 69, 79
RELATIVESCALETYPE option, BUBBLEPLOT statement 58
RESET option, ODS GRAPHICS statement 43
resolution of graph 43
RESPONSE parameter, BARCHART statement 61
ROW2AXIS statement 120
ROWAXES statement 109
ROWAXIS statement 109, 120
ROWAXISOPTS option
LAYOUT DATALATTICE statement 89
LAYOUT DATAPANEL statement 98
ROWDATARANGE option, LAYOUT DATALATTICE statement 93
ROWS option
LAYOUT DATALATTICE statement 94
LAYOUT DATAPANEL statement 103
LAYOUT GRIDDED statement 111
ROWVAR parameter, LAYOUT DATALATTICE statement 21, 87, 88
ROWWEIGHTS option, LAYOUT LATTICE statement 42, 108
S
SAS
documentation for 6
versions of, used in this book 8
SAS 9.2
decorative skins support in 7
GTL features in 5
ODS Graphics features in 3, 4
SAS procedures in 4
SAS 9.3
attribute maps in 13, 24
basic plots in 14–15
BOXPLOT options in 67
categorical plots in 15
decorative skins support in 7–8
DRAW statement in 13, 25–26
layouts in 17, 18
parametric plots in 16
SAS procedures in 4
style defaults in 25, 151
SAS 9.4
annotations in 13, 26
axis features in 122, 125
axis tables in 62, 81
BANDPLOT options in 55
BARCHART parameters in 61
COLUMNWEIGHT option in 87, 91, 96, 101
decorative skins support in 8
FILLEDOUTLINEMARKERS option in 133
inset data in 87, 96
LABELFITPOLICY option in 121
LABELPOSITION option in 121
SUBPIXEL option in 53, 54, 55
SAS functions, evaluating 157–158
SAS procedures 4, 5
SAS/ETS procedures 4, 5
SASHELP.CLASS data set 21
SASHELP.TMPLMAST templates 27
SAS/HPF procedures 4, 5
SAS/QC procedures 4, 5
SAS/STAT procedures 4, 5
SASUSER.TEMPLAT templates 27
SCATTERPLOT statement 52, 79, 81
See also SGSCATTER procedure
SERIESPLOT statement 53
SG (Statistical Graphics) procedures 6
SGANNO data set 13, 26, 146–147
.sgd file extension 6
SGDESIGN procedure 6
SGE (Statistical Graphics Engine) 22, 154
SGE functions, evaluating 157–158
SGPANEL procedure 6
SGPLOT procedure 6
SGRENDER procedure 11–12, 32, 33, 146–147
SGSCATTER procedure 6
SHORTLABEL option, axes 121
SIDEBAR statement 87, 92, 96, 102
single-cell graphs
creating 49–50
layouts for 17
SGPLOT procedure for 6
size of graph 43
skins, data (decorative) 7–8, 57, 58, 61
slash (/), preceding options 37
SMOOTH option, PBSPLINEPLOT statement 71
SMOOTHCONNECT option, SERIESPLOT statement 53
STAT option
AXISTABLE statement 62
LINECHART statement 63
STATGRAPH template 5, 11–12, 32
Statistical Graphics Procedures by Example (Matange and Heath, 2011) 6, 7
Statistical Graphics (SG) procedures 6
statistics table 111
STEPPLOT statement 54, 81
style elements 25, 151
specifying with CYCLEATTRS 92, 102
specifying with FILLATTRS 152
specifying with LINEATTRS 35–36
STYLE parameter, ODS LISTING statement 152
styles 7, 13, 25, 151–152
SUBPIXEL option, BEGINGRAPH statement 53, 54, 55
SURFACEPLOTPARM statement 77
SURFACETYPE option, SURFACEPLOTPARM statement 77
survival plots 81
T
TEMPLATE procedure 5, 11–12, 32
templates
creating 5, 11–12, 32
location of 27
TEXTATTRS option, ENTRY* statements 111, 131, 132, 133–134
THREECOLORRAMP style element 24, 130
3-D plots 16, 50, 77–78
TICKINTERVALSTYLE option, axes 23
TICKVALUEATTRS option, axes 122
time axis 120–121, 122, 127
TIMEOPTS option, axes 127
titles 13, 14, 22, 32, 38
See also ENTRYTITLE statement
TYPE option
axes 121
ELLIPSE statement 72
U
Unicode characters 22
V
VALIGN option, DISCRETELEGEND statement 37
VALUE statement 138–140
variables
dynamic variables 13, 24–25, 155
macro variables 13, 24–25, 154
VECTORPLOT statement 60
W
wall 14
WIDTH option, ODS GRAPHICS statement 43
X
X parameter, HIGHLOWPLOT statement 56
X2AXISOPTS option, LAYOUT OVERLAY statement 121
XAXISOPTS option, LAYOUT OVERLAY statement 38–39, 121, 123
Y
Y parameter, HIGHLOWPLOT statement 56
Y2AXISOPTS option, LAYOUT OVERLAY statement 121, 123
YAXISOPTS option, LAYOUT OVERLAY statement 121, 123
Symbols
/ (slash), preceding options 37
Numbers
3-D plots 16, 50, 77–78