Chapter 27 Saving and Printing Graphics

Similar documents
Chapter 28 Saving and Printing Tables. Chapter Table of Contents SAVING AND PRINTING TABLES AS OUTPUT OBJECTS OUTPUT OBJECTS...

Chapter 23 Animating Graphs. Chapter Table of Contents ANIMATING SELECTION OF OBSERVATIONS ANIMATING SELECTED GRAPHS...347

Chapter 3 Managing Results in Projects. Chapter Table of Contents

Chapter 25 Editing Windows. Chapter Table of Contents

APPENDIX 2 Customizing SAS/ASSIST Software

Graphics. Chapter Overview CHAPTER 4

Chapter 2 User Interface Features. networks Window. Drawing Panel

SAS/ASSIST Software Setup

Data Representation. Variable Precision and Storage Information. Numeric Variables in the Alpha Environment CHAPTER 9

Introduction. LOCK Statement. CHAPTER 11 The LOCK Statement and the LOCK Command

Formats. Formats Under UNIX. HEXw. format. $HEXw. format. Details CHAPTER 11

Chapter 6 Creating Reports. Chapter Table of Contents

Using Cross-Environment Data Access (CEDA)

Permission Program. Support for Version 6 Only. Allowing SAS/SHARE Client Access to SAS Libraries or Files CHAPTER 40

Chapter 25 PROC PARETO Statement. Chapter Table of Contents. OVERVIEW SYNTAX SummaryofOptions DictionaryofOptions...

Using the SQL Editor. Overview CHAPTER 11

Overview. CHAPTER 2 Using the SAS System and SAS/ ASSIST Software

CREATING THE DISTRIBUTION ANALYSIS

Using Data Transfer Services

Storing and Reusing Macros

CHAPTER 13 Importing and Exporting External Data

The GTESTIT Procedure

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently.

Informats. Informats Under UNIX. HEXw. informat. $HEXw. informat. Details CHAPTER 13

Routing Output. Producing Output with SAS Software CHAPTER 6

SAS Catalogs. Definition. Catalog Names. Parts of a Catalog Name CHAPTER 32

External Files. Definition CHAPTER 38

Macro Facility. About the Macro Facility. Automatic Macro Variables CHAPTER 14

Tasks Menu Reference. Introduction. Data Management APPENDIX 1

Introduction. CHAPTER 3 Working in the SAS Windowing Environment

SAS. IT Service Level Management 2.1: Migration Documentation

Choosing the Right Procedure

from the source host, use the FTP put command to copy a file from the source host to the target host.

SAS I/O Engines. Definition. Specifying a Different Engine. How Engines Work with SAS Files CHAPTER 36

SAS File Management. Improving Performance CHAPTER 37

Enterprise Miner Software: Changes and Enhancements, Release 4.1

Alternative ODS HTML Statements for Running Examples in Different Operating Environments

Chapter 13 Multivariate Techniques. Chapter Table of Contents

Optimizing System Performance

Licensing SAS DataFlux Products

SAS Support for TELNET on Windows

Chapter 41 SAS/INSIGHT Statements. Chapter Table of Contents

SAS Simulation Studio 14.1: User s Guide. Introduction to SAS Simulation Studio

The GSLIDE Procedure. Overview. About Text Slides CHAPTER 27

Changes and Enhancements

Data Set Options. Specify a data set option in parentheses after a SAS data set name. To specify several data set options, separate them with spaces.

SAS Universal Viewer 1.3

Defining Your Data Sources

Chapter 15 Mixed Models. Chapter Table of Contents. Introduction Split Plot Experiment Clustered Data References...

Routing the SAS Log and SAS Procedure Output

OpenVMS Operating Environment

The GANNO Procedure. Overview CHAPTER 12

Creating and Executing Stored Compiled DATA Step Programs

SAS/ACCESS Interface to R/3

The GIMPORT Procedure

SCL Arrays. Introduction. Declaring Arrays CHAPTER 4

The EXPLODE Procedure

SAS Workflow Manager 2.2: Administrator s Guide

SAS Publishing SAS. Forecast Studio 1.4. User s Guide

SAS Data Libraries. Definition CHAPTER 26

DBLOAD Procedure Reference

Examples That Use Remote Objecting

OS/2: SPX Access Method

UNIX Platform Error Messages

Introduction to MDDBs

OS/390 Platform Examples

SAS/STAT 13.1 User s Guide. The Power and Sample Size Application

Installation Instructions for SAS/ACCESS Interface to SAP BW

CHAPTER 7 Using Other SAS Software Products

SAS Model Manager 2.2. Tutorials

Administrator for Enterprise Clients: User s Guide. Second Edition

Windows: SPX Access Method

SAS Web Infrastructure Kit 1.0. Overview

SAS. Information Map Studio 3.1: Creating Your First Information Map

Using CVS Repositories with SAS

UNIX Spawner Program. Starting the UNIX Spawner Program CHAPTER 36

Using Dynamic Data Exchange

The correct bibliographic citation for this manual is as follows: SAS Institute Inc Proc EXPLODE. Cary, NC: SAS Institute Inc.

CHAPTER 5 Macintosh: TCP/IP Access Method

Changes and Enhancements

Loading Data. Introduction. Understanding the Volume Grid CHAPTER 2

Using MDP Extensions. What Is the Multidimensional Data Provider? CHAPTER 3

CREATING THE ANALYSIS

SAS Theme Designer 3.1 for Flex

Information Visualization

SAS Structural Equation Modeling 1.3 for JMP

SAS Theme Designer 4.7 for Flex

QUEST Procedure Reference

Chapter 7 File Access. Chapter Table of Contents

SAS 9.2 Foundation Services. Administrator s Guide

Chapter 28 Command Reference. Chapter Table of Contents TSVIEW COMMAND FORECAST COMMAND

The G4GRID Procedure. Introduction APPENDIX 1

CHAPTER 7 Examples of Combining Compute Services and Data Transfer Services

SAS Web Report Studio 3.1

SAS Drug Development 3.3_03. December 14, 2007

Administering SAS Enterprise Guide 4.2

Chapter 14 Introduction to the FACTEX Procedure

SAS Add-In 7.1 for Microsoft Office: Getting Started in Microsoft Excel, Microsoft Word, and Microsoft PowerPoint, Second Edition

Locking SAS Data Objects

Chapter 23 Introduction to the OPTEX Procedure

Transcription:

Chapter 27 Saving and Printing Graphics Chapter Table of Contents CHOOSING FONTS...404 SETTING DISPLAY OPTIONS...406 SAVING GRAPHICS...407 SavingGraphicsCatalogs...407 SavingGraphicsFiles...408 PRINTING...410 PrintingfromtheDisplay...410 Printing from the Clipboard...410 PrintingfromtheWindow...411 401

Part 2. Introduction 402

Chapter 27 Saving and Printing Graphics If you have SAS/GRAPH software installed, you can save any SAS/INSIGHT window to a graphics catalog. You can modify graphics using the Graphics Editor and print them on any SAS/GRAPH device. You can save graphics files in bitmap formats including GIF, TIFF, and PostScript. On Windows and OS/2 hosts, SAS/INSIGHT software prints using host printing facilities. On other hosts, you can print using SAS/GRAPH software or host-provided screen-dumping utilities. To improve your output, you can choose proportional fonts and set display options. Figure 27.1. Printed Output with Title 403

Part 2. Introduction Choosing Fonts Proportional fonts make your output more readable. Choose Edit:Windows:Fonts to display the fonts dialog. File Edit Analyze Tables Graphs Curves Vars Help Windows Variables Observations Formats Copy Delete Renew... Copy Window Align Animate... Freeze Select All Tools Fonts Display Options... Window Options... Graph Options... Figure 27.2. Edit:Windows Menu Figure 27.3. Fonts Dialog 404

Chapter 27. Choosing Fonts The appearance of the fonts dialog depends on your host, and its contents depend on the fonts you have installed. On most hosts, you can simply click on a font name, click on other settings if desired, then click OK to set the font. The font you choose is used to display tables, data values, and axis labels in graphs. Tick labels in graphs use a slightly smaller font from the same font family. Figure 27.4. Fit Analysis with Proportional Font 405

Part 2. Introduction Setting Display Options To improve presentation output, SAS/INSIGHT software provides display options. Choose Edit:Windows:Display Options to produce the display options dialog. File Edit Analyze Tables Graphs Curves Vars Help Windows Variables Observations Formats Copy Delete Renew... Copy Window Align Animate... Freeze Select All Tools Fonts Display Options... Window Options... Graph Options... Figure 27.5. Edit:Windows Menu Figure 27.6. Display Options Dialog The Background option enables you to choose a Black or White background. Because they provide maximum contrast, black and white are the best background colors for exploratory data analysis. Printing on black-and-white printers may translate colors to shades of gray. If gray shades do not reproduce well on your printer, choose Foreground:Monochrome to improve your output. The figures in this book are set as in Figure 27.6. 406

Chapter 27. Saving Graphics The remaining display options are described in detail in Chapter 29, Configuring SAS/INSIGHT Software. You can choose File:Save:Options to save all option settings to use as defaults in subsequent SAS/INSIGHT sessions. Saving Graphics If you have SAS/GRAPH software installed, you can save graphics catalogs in either Graph or Image format. You can use SAS/GRAPH software to save graphics files in a variety of bitmap formats. Saving Graphics Catalogs To save SAS/GRAPH catalogs from SAS/INSIGHT software, follow these steps. =) Select any graphs or tables you want to save. If no graphs or tables are selected, you will save all objects visible in the active window. To save all objects in the window, visible or not, choose Edit:Windows:Select All. Choosing this menu selects all graphs and tables in the active window. =) Choose File:Save:Graphics Catalog. This calls up the save graphics catalog dialog. File Edit Analyze Tables Graphs Curves Vars Help New Open... Save Print... Print setup... Print preview End Data... Graphics Catalog... Graphics File... Tables Initial Tables Statements Options Figure 27.7. File:Save Menu =) Click the Graph or Image radio button to set your preference. 407

Part 2. Introduction Figure 27.8. Graphics Catalog Dialog You can also specify catalog, entry, and description for your graphics output. Set the One Per Entry option if you want to store each graph and table as a separate catalog entry. Entry names are derived from the name of the graph or table. Set the Titles and Footnotes option if you want to use SAS titles and footnotes. If you set both One Per Entry and Titles and Footnotes options, and if your window contains group variables, an additional title is generated to show the group. The group title is similar to the BY-group title in SAS/GRAPH output. =) Click OK to save the catalog. Saving Graphics Files You can use SAS/GRAPH software to save graphics files in a variety of bitmap formats. To save bitmaps, follow these steps. =) Select any graphs or tables you want to save. If no graphs or tables are selected, you will save all objects visible in the active window. =) Choose File:Save:Graphics File to display the graphics file dialog. 408

Chapter 27. Saving Graphics File Edit Analyze Tables Graphs Curves Vars Help New Open... Save Print... End Data... Graphics Catalog... Graphics File... Tables Initial Tables Statements Options Figure 27.9. File:Save Menu Figure 27.10. Graphics File Dialog =) Enter your file name, choose a format, and set additional options. Use the Full Color or Grey Scale options to control the colors stored in graphics files. Usually Grey Scale produces smaller files for faster printing. Set the One Per File option if you want to store each graph and table in a separate file. If you set this option, the directory name is derived from the name you enter. Eight-character file names are derived from the name of the graph or table; for example, scatter for scatter plots, or parametr for parameter estimates. Set the Titles and Footnotes option if you want to use SAS titles and footnotes. If you set both One Per File and Titles and Footnotes options, and if your window contains group variables, an additional title is generated to show the group. The group title is similar to the BY-group title in SAS/GRAPH output. =) Click OK to save the graphics file. y Note: Clicking OK overwrites any files with the same file name. 409

Part 2. Introduction Printing For more information on saving graphics in bitmap formats, refer to the chapter on Exporting SAS/Graph Output in SAS/GRAPH Software: Reference. Methods of printing vary greatly among different hosts. This section describes briefly the typical steps in printing on most personal computers and workstations. For more information on printing, refer to your host documentation and to the SAS companion for your host. See also the host changes and enhancements reports for Releases 6.10 and 6.11, as several hosts have improved printing in these releases. Briefly, SAS/INSIGHT supports three ways of printing. If your host provides screendumping utilities, you can print anything that is visible on the display. Alternatively, on many hosts you can copy graphs and tables to the clipboard and then print the clipboard. Finally, you can use host printing facilities or SAS/GRAPH software to print directly from SAS/INSIGHT windows. Printing from the Display Many hosts provide tools or interfaces to print directly from the display. On UNIX hosts, tools such as xwd and xv deliver high-quality output. On Windows hosts, you can print the active window directly from the display by following these steps. =) Choose File:Print. =) Set the Print as Bitmap check box. =) Click OK. Printing from the display restricts you to printing objects that are visible. For more flexibility, you can print from the clipboard. Printing from the Clipboard Windows hosts support printing from the clipboard. To print graphs and tables from the clipboard, follow these steps. =) Select any graphs or tables you wish to print. Drag a rectangle through the graphs and tables, or click on their edges. If no graphs or tables are selected, you will print all objects visible in the active window. 410

Chapter 27. Printing Figure 27.11. Selected Graphs and Tables =) Choose Edit:Copy to copy selected objects to the clipboard. =) Choose File:Print. =) Set the Print as Bitmap check box. =) Set the Contents of list to Clipboard (bitmap). =) Click OK. Printing from the clipboard is not supported on all hosts. For a more general way of printing, you can print directly from a SAS/INSIGHT window. Printing from the Window Printing from the window is the most flexible way to print. SAS/INSIGHT window, follow these steps. To print from a =) Select any graphs or tables you wish to print. If no graphs or tables are selected, you will print all objects visible in the active window. To print all objects in the window, visible or not, choose Edit:Windows:Select All to select all graphs and tables in the window. =) Choose File:Print. On Windows and OS/2, this displays a host Print dialog, with options such as the Print as Bitmap option in the preceding sections. If you receive a host Print dialog, click OK. This displays the SAS/INSIGHT Print dialog. 411

Part 2. Introduction Figure 27.12. SAS/INSIGHT Print Dialog In the SAS/INSIGHT Print dialog, the Fill Page option expands your output to fill the area of the page. The One Per Page option prints each graph and table on a separate page. The Titles and Footnotes option prints using SAS titles and footnotes. If you set both One Per Page and Titles and Footnotes options, and if your window contains group variables, an additional title is generated to show the group. The group title is similar to the BY-group title in SAS/GRAPH output. An example of the group title for histograms of YR MAJOR by LEAGUE is shown in Figure 27.13. =) Set options as needed, then click OK in the Print dialog. Clicking OK in the Print dialog routes your printing through host printing facilities if they are provided. Windows and OS/2 provide such facilities, and they are documented in SAS companions and host changes and enhancements reports. If your host does not support host printing, your printing is routed through SAS/GRAPH software. You will be prompted for an output device if you have not specified one with the GOPTIONS TARGETDEVICE= option. 412

Chapter 27. Printing Figure 27.13. Output with Title and Group Title An alternative way of printing is to save your graphics to catalogs and print them from SAS/GRAPH software. This enables you to edit your output before printing. SAS/GRAPH printing and graphics catalogs are described in SAS/GRAPH Software: Reference. 413

The correct bibliographic citation for this manual is as follows: SAS Institute Inc., SAS/ INSIGHT User s Guide, Version 8, Cary, NC: SAS Institute Inc., 1999. 752 pp. SAS/INSIGHT User s Guide, Version 8 Copyright 1999 by SAS Institute Inc., Cary, NC, USA. ISBN 1 58025 490 X All rights reserved. Printed in the United States of America. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS Institute Inc. U.S. Government Restricted Rights Notice. Use, duplication, or disclosure of the software by the government is subject to restrictions as set forth in FAR 52.227 19 Commercial Computer Software-Restricted Rights (June 1987). SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513. 1st printing, October 1999 SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies. The Institute is a private company devoted to the support and further development of its software and related services.