You are previewing Statistical Graphics in SAS®: An Introduction to the Graph Template Language and the Statistical Graphics Procedures.
O'Reilly logo
Statistical Graphics in SAS®: An Introduction to the Graph Template Language and the Statistical Graphics Procedures

Book Description

The Graph Template Language (GTL) and the Statistical Graphics (SG) procedures are powerful new additions to SAS for creating high-quality statistical graphics. Warren F. Kuhfeld's Statistical Graphics in SAS: An Introduction to the Graph Template Language and the Statistical Graphics Procedures provides a parallel and example-driven introduction to the SG procedures and the GTL. Most graphs in the book are produced in at least two ways. Each example provides prototype code for getting started with the GTL and with the SG procedures. While you do not need to write a template to make many useful graphs, understanding the GTL enables you to create custom graphs that cannot be produced by the SG procedures. Knowing the GTL also helps you modify the sometimes complex templates that SAS provides.

Written for anyone interested in statistical graphics, Statistical Graphics in SAS is a comprehensive introduction to these two aspects of ODS Graphics. It helps you understand the basics of what you can do with the SG procedures as well as how you can go beyond that by using the full power of the GTL.

Table of Contents

  1. Copyright
  2. Preface
    1. The Role of the GTL in SAS
    2. Navigating This Book
    3. Acknowledgments
  3. About This Book
    1. Purpose
    2. Is This Book for You?
    3. Scope of This Book
    4. Typographical Conventions Used in This Book
    5. Software Used to Develop This Book
    6. Data and Programs Used in This Book
    7. Author Pages
    8. Example Code—Examples from This Book at Your Fingertips
    9. Additional Resources
    10. Comments or Questions?
  4. 1. GTL and the SG Procedures
    1. 1.1 Scatter Plot
    2. 1.2 Regression Fit Plot
      1. 1.2.1 Loess Fit Plot
      2. 1.2.2 Penalized B-Spline Fit Plot
      3. 1.2.3 Grouped Regression Fit Plot
      4. 1.2.4 Regression Fit Plot with Confidence and Prediction Limits
      5. 1.2.5 Text Insets and Special Characters
    3. 1.3 Bar Chart
    4. 1.4 Histogram
    5. 1.5 Density Plot
      1. 1.5.1 Fringe Plot
      2. 1.5.2 Drop Lines
    6. 1.6 Box Plot
    7. 1.7 Series Plot
    8. 1.8 Dot Plot
    9. 1.9 Ellipses
    10. 1.10 Bubble Plot
    11. 1.11 Line Plot
    12. 1.12 Needle Plot
    13. 1.13 Step Plot
    14. 1.14 Vector Plot
    15. 1.15 Contour Plot
      1. 1.15.1 Continuous Legend
      2. 1.15.2 Contour Plot and Scatter Plot Overlaid
    16. 1.16 Block Plot
    17. 1.17 Three-Dimensional Surface Plot
    18. 1.18 Three-Dimensional Histogram
  5. 1.19 References
  6. 2. Panels
    1. 2.1 Scatter Plot Matrix
    2. 2.2 Residual Panel
    3. 2.3 Data Panel
  7. 3. Style Templates
    1. 3.1 ODS Styles
    2. 3.2 ODS Style Modification
    3. 3.3 Colors and Groups
    4. 3.4 An All-Color Style
    5. 3.5 An Ad Hoc Style Modification for Groups
    6. 3.6 Color Changes in a Survival Plot
    7. 3.7 Direct Style Modifications
  8. 3.8 References
  9. 4. Graph Template Modification
    1. 4.1 Dynamic Variables and Graph Template Modification
    2. 4.2 Changing Titles and Axis Labels
    3. 4.3 Changing Titles and Axis Labels Set by Dynamic Variables
    4. 4.4 Modifying Colors, Lines, Markers, Axes, and Reference Lines
    5. 4.5 Legends
    6. 4.6 Lattice Layout and Panels
    7. 4.7 Conditional Template Logic
    8. 4.8 Paneled Displays
    9. 4.9 BY Groups
  10. 4.10 References
  11. A. Introduction to ODS Graphics
    1. A.1 ODS Destinations
    2. A.2 Accessing Individual Graphs
    3. A.3 Specifying the Size and Resolution of Graphs
    4. A.4 PLOTS= Option
    5. A.5 Viewing Your Graphs in the SAS Windowing Environment
    6. A.6 Determining Graph Names and Labels
    7. A.7 The Default Template Stores and the ODS PATH
    8. A.8 Modifying Your Graphs
    9. A.9 Data Objects
    10. A.10 Recommended Reading
  12. B. Some Tips and Techniques for Understanding the GTL