Preface |
|
xiii | |
Acknowledgments |
|
xvii | |
Author Biography |
|
xix | |
1 SAS Can Produce High-Quality Figures |
|
1 | (8) |
|
|
1 | (1) |
|
1.2 Two Sample Figures Produced in SAS with Different Quality |
|
|
1 | (2) |
|
1.3 Bitmap and Vector Format Figures |
|
|
3 | (2) |
|
1.3.1 Bitmap Format Graphics |
|
|
3 | (1) |
|
1.3.2 Vector Format Graphics |
|
|
4 | (1) |
|
1.4 Why Vector Format Figures? |
|
|
5 | (1) |
|
1.5 Publication Requirements for Art and Figure Preparation |
|
|
5 | (2) |
|
1.5.1 Taylor & Francis Group: Electronic Art Guidelines |
|
|
5 | (1) |
|
1.5.1.1 Vector Graphics Formats |
|
|
6 | (1) |
|
1.5.1.2 Bitmapped Graphics Formats |
|
|
6 | (1) |
|
1.5.2 Nature: Final Artwork |
|
|
6 | (1) |
|
1.5.3 Science: Preparing Your Art and Figures |
|
|
7 | (1) |
|
1.6 SAS Can Produce High-Quality Figures to Meet Publication Requirements |
|
|
7 | (1) |
|
|
7 | (2) |
2 Principles of Producing High-Quality Figures in SAS |
|
9 | (12) |
|
|
9 | (1) |
|
2.2 SAS/GRAPH and ODS Graphics Procedures |
|
|
9 | (2) |
|
2.2.1 SAS/GRAPH Procedures |
|
|
9 | (1) |
|
2.2.2 SAS ODS Graphics Procedures |
|
|
10 | (1) |
|
2.2.3 SAS/GRAPH versus ODS Graphics Procedures |
|
|
10 | (1) |
|
2.3 Listing Output to Save Figures from One Procedure (PS, EPS, EMF, CGM, and so on) |
|
|
11 | (1) |
|
2.4 ODS Output to Save Figures from Several Procedures into a Document (PDF, RTF, and so on) |
|
|
12 | (1) |
|
2.5 GOPTIONS in SAS/GRAPH |
|
|
13 | (3) |
|
2.6 Software vs. Hardware Fonts |
|
|
16 | (2) |
|
|
16 | (1) |
|
|
16 | (1) |
|
2.6.3 Available Hardware Fonts for Listing Outputs |
|
|
17 | (1) |
|
2.6.4 Available Hardware Fonts for ODS Outputs (RTF, PDF) |
|
|
18 | (1) |
|
2.7 Controlling Titles and Footnotes in RTF Format Figure Files |
|
|
18 | (1) |
|
2.8 Adding Bookmarks in PDF Format Figure Files |
|
|
19 | (1) |
|
2.9 Setting Up Global Options and Macro Variables |
|
|
19 | (1) |
|
|
20 | (1) |
3 Line Plots |
|
21 | (30) |
|
|
21 | (1) |
|
|
21 | (4) |
|
3.2.1 A Simple Line Plot with Mean IOP Values by Time |
|
|
23 | (1) |
|
3.2.2 A Line Plot with SD Bar Displayed Together with the Mean IOP Values |
|
|
23 | (1) |
|
3.2.3 Line Plots with Maximum, Average, and Minimum Rates and Points for a 30-year Fixed-Rate Mortgage |
|
|
24 | (1) |
|
3.3 Producing the Sample Figures |
|
|
25 | (7) |
|
3.3.1 Data Structure and SAS Annotated Dataset |
|
|
25 | (1) |
|
3.3.2 Notes to SAS Programs |
|
|
25 | (9) |
|
3.3.2.1 Main Sections and Features of the First Program |
|
|
27 | (3) |
|
3.3.2.2 Main Features of the Second SAS Program |
|
|
30 | (2) |
|
3.4 Summary and Discussion |
|
|
32 | (2) |
|
|
34 | (1) |
|
3.6 Appendix: SAS Programs for Producing the Sample Figures |
|
|
34 | (17) |
|
3.6.1 Line Plots for IOP Values |
|
|
34 | (9) |
|
3.6.2 Line Plots for Mortgage Rates and Points |
|
|
43 | (8) |
4 Scatter and Jittered Scatter Plots |
|
51 | (24) |
|
|
51 | (1) |
|
|
51 | (3) |
|
4.2.1 Example 1: Scatter Plots with Mean Value Displayed |
|
|
52 | (1) |
|
4.2.2 Example 2: Scatter Plot with Mean Values and Reduction Reference Lines |
|
|
52 | (1) |
|
4.2.3 Example 3: Jittered Scatter Plots with IOP Values Displayed Side by Side |
|
|
53 | (1) |
|
4.3 Producing the Sample Figures |
|
|
54 | (6) |
|
4.3.1 Data Structure and SAS Annotated Dataset |
|
|
54 | (1) |
|
4.3.2 Notes to SAS Programs |
|
|
54 | (23) |
|
4.3.2.1 Dataset Simulation |
|
|
56 | (1) |
|
4.3.2.2 Data Analyses and Manipulation |
|
|
56 | (1) |
|
4.3.2.3 SAS/GRAPH Annotate Datasets |
|
|
57 | (1) |
|
4.3.2.4 Producing the Scatter Plots in GPLOT |
|
|
58 | (1) |
|
4.3.2.5 Producing the Scatter Plots in SGPLOT |
|
|
59 | (1) |
|
4.3.2.6 Producing Line-Up littered Scatter Plot |
|
|
60 | (1) |
|
4.4 Summary and Discussion |
|
|
60 | (1) |
|
|
61 | (1) |
|
4.6 Appendix: SAS Programs for Producing the Sample Figures |
|
|
62 | (13) |
5 Line-Up tittered Scatter Plots |
|
75 | (20) |
|
|
75 | (1) |
|
5.2 Algorithms for Line-Up littered Scatter Plots |
|
|
75 | (1) |
|
|
76 | (1) |
|
5.4 Producing the Sample Figures |
|
|
77 | (8) |
|
5.4.1 Data Structure and SAS Annotated Dataset |
|
|
77 | (2) |
|
5.4.2 Notes to SAS Programs |
|
|
79 | (16) |
|
|
79 | (2) |
|
5.4.2.2 Data Analyses and Manipulation |
|
|
81 | (1) |
|
5.4.2.3 Producing Sample Figures Using PROC GPLOT |
|
|
82 | (2) |
|
5.4.2.4 Producing Sample Figures Using PROC SGPLOT |
|
|
84 | (1) |
|
5.5 Summary and Discussion |
|
|
85 | (1) |
|
|
86 | (1) |
|
5.7 Appendix: SAS Programs for Producing the Sample Figures |
|
|
86 | (9) |
6 Thunderstorm or Raindrop Scatter Plots |
|
95 | (26) |
|
|
95 | (1) |
|
|
95 | (5) |
|
6.2.1 Example 1: Two IOPs on the y-Axis by CCT on the x-Axis |
|
|
96 | (1) |
|
6.2.2 Example 2: Baseline and Week 12 Mean Diurnal IOP on the y-Axis by Subjects Grouped by Investigator Sites on the x-Axis |
|
|
96 | (1) |
|
6.2.3 Example 3: Plant Tissue Nutrient Contents before and after Salinity Stress in Creeping Bentgrass |
|
|
97 | (3) |
|
6.3 Producing the Sample Figures |
|
|
100 | (6) |
|
6.3.1 Data Structure and SAS Annotated Dataset |
|
|
100 | (1) |
|
6.3.2 Notes to SAS Programs |
|
|
100 | (7) |
|
6.3.2.1 Main Sections and Features of the First Program |
|
|
102 | (2) |
|
6.3.2.2 Main Sections and Features of the Second Program |
|
|
104 | (1) |
|
6.3.2.3 Main Sections and Features of the Third Program |
|
|
105 | (1) |
|
6.4 Summary and Discussion |
|
|
106 | (1) |
|
|
106 | (1) |
|
6.6 Appendix: SAS Programs for Producing the Sample Figures |
|
|
107 | (14) |
|
6.6.1 Thunderstorm Scatter Plots for Two Types of IOPs by Corresponding CCT |
|
|
107 | (4) |
|
6.6.2 Thunderstorm Scatter Plots for IOP at Baseline and Week 12 by Subject |
|
|
111 | (6) |
|
6.6.3 Raindrop Scatter Plots for Plant Nutrient Contents at Three Salinity Levels |
|
|
117 | (4) |
7 Spaghetti Plots |
|
121 | (16) |
|
|
121 | (1) |
|
|
121 | (2) |
|
7.3 Producing the Sample Figures |
|
|
123 | (6) |
|
7.3.1 Data Structure and SAS Annotated Dataset |
|
|
123 | (2) |
|
7.3.2 Notes to SAS Programs |
|
|
125 | (12) |
|
7.3.2.1 Dataset Simulation and Manipulation |
|
|
125 | (1) |
|
7.3.2.2 Producing the Sample Figures Using the GPLOT and GREPLAY Procedures |
|
|
125 | (2) |
|
7.3.2.3 Producing the Sample Figures Using the SGPLOT and SGPANEL Procedures |
|
|
127 | (2) |
|
7.4 Summary and Discussion |
|
|
129 | (1) |
|
|
130 | (1) |
|
7.6 Appendix: SAS Programs for Producing the Sample Figures |
|
|
130 | (7) |
8 Bar Charts |
|
137 | (20) |
|
|
137 | (1) |
|
|
137 | (2) |
|
8.2.1 Example 1: Bar Chart of Drug Effects on IOP Reduction by Baseline IOP Categories |
|
|
137 | (2) |
|
8.2.2 Example 2: Stacked Bar Charts for Patient Drop-out Reasons by Treatment and Visit |
|
|
139 | (1) |
|
8.3 Producing the Sample Figures |
|
|
139 | (5) |
|
|
139 | (1) |
|
8.3.2 Notes to SAS Programs |
|
|
140 | (6) |
|
8.3.2.1 Dataset Simulation (1st Program) |
|
|
140 | (1) |
|
8.3.2.2 Data Analyses and Manipulation (1st Program) |
|
|
140 | (1) |
|
8.3.2.3 Producing Bar Charts Using GPLOT and GREPLAY |
|
|
141 | (1) |
|
8.3.2.4 Producing Bar Charts Using SGPLOT and SGPANEL |
|
|
142 | (2) |
|
8.3.2.5 Bar Charts with Stacked and Cluster Groups (2nd Program) |
|
|
144 | (1) |
|
8.4 Summary and Discussion |
|
|
144 | (1) |
|
|
145 | (1) |
|
8.6 Appendix: SAS Programs for Producing the Sample Figures |
|
|
146 | (11) |
|
|
146 | (6) |
|
|
152 | (5) |
9 Box Plots |
|
157 | (18) |
|
|
157 | (1) |
|
|
157 | (1) |
|
9.2.1 Example: Box Plots for Drug Effects on IOP Reduction by Baseline IOP Categories |
|
|
157 | (1) |
|
9.3 Producing the Sample Figures |
|
|
158 | (5) |
|
|
158 | (1) |
|
9.3.2 Notes to SAS Programs |
|
|
158 | (17) |
|
9.3.2.1 Dataset Simulation |
|
|
158 | (1) |
|
9.3.2.2 Data Analyses and Manipulation |
|
|
159 | (1) |
|
9.3.2.3 Producing the Sample Figures Using GPLOT and GREPLAY |
|
|
160 | (1) |
|
9.3.2.4 Producing the Sample Figures in SGPLOT and SGPANEL |
|
|
161 | (1) |
|
9.3.2.5 Producing Custom Box Plots with Specified Whisker Length in SGPLOT |
|
|
162 | (1) |
|
9.4 Understanding Box Plots |
|
|
163 | (2) |
|
9.5 Summary and Discussion |
|
|
165 | (1) |
|
|
166 | (1) |
|
9.7 Appendix: SAS Programs for Producing the Sample Figures |
|
|
166 | (9) |
10 Forest Plots |
|
175 | (20) |
|
|
175 | (1) |
|
10.2 Application Examples |
|
|
175 | (2) |
|
10.2.1 Example 1: Mean Estimates and 95% CI for Treatment Difference at Each Post-baseline Visit and Hour |
|
|
177 | (1) |
|
10.2.2 Example 2: Relative Risk and 95% CI for Different Adverse Events |
|
|
177 | (1) |
|
10.3 Producing the Sample Figures |
|
|
177 | (7) |
|
10.3.1 Data Structure and SAS Annotated Dataset |
|
|
177 | (1) |
|
10.3.2 Notes to SAS Programs |
|
|
178 | (19) |
|
10.3.2.1 First Part Main Sections and Features |
|
|
180 | (2) |
|
10.3.2.2 Second Part Main Sections and Features |
|
|
182 | (2) |
|
10.4 Summary and Discussion |
|
|
184 | (1) |
|
|
184 | (1) |
|
10.6 Appendix: SAS Programs for Producing the Sample Figures |
|
|
185 | (10) |
11 Survival Plots |
|
195 | (12) |
|
|
195 | (1) |
|
11.2 Application Examples |
|
|
195 | (2) |
|
11.3 Producing the Sample Figures |
|
|
197 | (5) |
|
|
197 | (1) |
|
11.3.2 Notes to SAS Programs |
|
|
197 | (10) |
|
11.3.2.1 Producing Survival Plots Using the LIFETEST Procedure Directly |
|
|
198 | (2) |
|
11.3.2.2 Producing Survival Plots Using the SGPLOT Procedure with the Output Dataset from LIFETEST |
|
|
200 | (2) |
|
11.4 Summary and Discussion |
|
|
202 | (1) |
|
|
202 | (1) |
|
11.6 Appendix: SAS Programs for Producing the Sample Figures |
|
|
202 | (5) |
12 Waterfall Plots and Histograms |
|
207 | (16) |
|
|
207 | (1) |
|
12.2 Application Examples |
|
|
207 | (3) |
|
12.2.1 Waterfall Plot: Change from Baseline in IOP for 50 Subjects |
|
|
208 | (1) |
|
|
208 | (2) |
|
12.3 Producing the Sample Figures |
|
|
210 | (4) |
|
12.3.1 Data Structure and SAS Annotated Dataset |
|
|
210 | (1) |
|
12.3.2 Notes to SAS Programs |
|
|
210 | (5) |
|
12.3.2.1 Main Sections of the First Program |
|
|
211 | (2) |
|
12.3.2.2 Main Sections of the Second Program |
|
|
213 | (1) |
|
12.4 Summary and Discussion |
|
|
214 | (1) |
|
|
214 | (1) |
|
12.6 Appendix: SAS Programs for Producing the Sample Figures |
|
|
215 | (8) |
|
|
215 | (3) |
|
|
218 | (5) |
13 Bland-Altman Plots for Agreement Analyses |
|
223 | (10) |
|
|
223 | (1) |
|
13.2 Agreement versus Correlation |
|
|
223 | (2) |
|
|
225 | (1) |
|
13.4 Producing the Sample Figures |
|
|
225 | (2) |
|
|
225 | (1) |
|
13.4.2 Notes to SAS Programs |
|
|
225 | (8) |
|
13.4.2.1 Dataset Simulation and Analyses |
|
|
226 | (1) |
|
13.4.2.2 Producing the Sample Plots Using the GPLOT Procedure |
|
|
226 | (1) |
|
13.4.2.3 Producing the Sample Plots Using the SGPLOT Procedure |
|
|
226 | (1) |
|
13.5 Summary and Discussion |
|
|
227 | (1) |
|
|
227 | (1) |
|
13.7 Appendix: SAS Programs for Producing the Sample Figures |
|
|
227 | (6) |
14 SAS ODS Graphic Designer |
|
233 | (16) |
|
|
233 | (1) |
|
14.2 SAS ODS Graphic Designer |
|
|
233 | (1) |
|
|
233 | (1) |
|
|
234 | (1) |
|
14.3 Using the ODS Graphic Designer to Reproduce Some Figures in the Previous Chapters |
|
|
234 | (5) |
|
14.3.1 Line-Up Jittered Scatter Plots |
|
|
236 | (2) |
|
14.3.2 Classification Box Plots |
|
|
238 | (1) |
|
14.4 Summary and Discussion |
|
|
239 | (1) |
|
|
240 | (1) |
|
14.6 Appendix: SAS Programs for Producing the Datasets and Generated by the Designer |
|
|
240 | (9) |
|
14.6.1 The littered Scatter Plot: Codes Producing the Dataset |
|
|
240 | (4) |
|
14.6.2 The Tittered Scatter Plot: GTL Codes Generated by the Designer |
|
|
244 | (1) |
|
14.6.3 The Classification Box Plot: Codes for Producing the Dataset |
|
|
245 | (3) |
|
14.6.4 The Classification Box Plot: GTL Codes Generated by the Designer |
|
|
248 | (1) |
15 Producing Figures in the SAS Enterprise Guide Environment |
|
249 | (8) |
|
|
249 | (1) |
|
15.2 Create, Run, and Save an EG Project |
|
|
249 | (3) |
|
|
252 | (1) |
|
15.4 Some Good Features and Notes for SAS EG |
|
|
252 | (1) |
|
15.5 Producing Graphics Directly in SAS EG Using the Point-and-Click Feature |
|
|
253 | (2) |
|
15.6 Summary and Discussion |
|
|
255 | (1) |
|
|
255 | (2) |
Index |
|
257 | |