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

Similar documents
Chapter 25 Editing Windows. Chapter Table of Contents

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

Chapter 27 Saving and Printing Graphics

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

Chapter 2 User Interface Features. networks Window. Drawing Panel

APPENDIX 2 Customizing SAS/ASSIST Software

Chapter 3 Managing Results in Projects. Chapter Table of Contents

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

Chapter 6 Creating Reports. Chapter Table of Contents

CREATING THE DISTRIBUTION ANALYSIS

Using Data Transfer Services

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

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

Graphics. Chapter Overview CHAPTER 4

Using Cross-Environment Data Access (CEDA)

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

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

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.

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

Using the SQL Editor. Overview CHAPTER 11

Creating and Executing Stored Compiled DATA Step Programs

SAS Support for TELNET on Windows

SAS/ASSIST Software Setup

CHAPTER 13 Importing and Exporting External Data

Chapter 41 SAS/INSIGHT Statements. Chapter Table of Contents

Storing and Reusing Macros

Licensing SAS DataFlux Products

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

External Files. Definition CHAPTER 38

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

Examples That Use Remote Objecting

SAS File Management. Improving Performance CHAPTER 37

SCL Arrays. Introduction. Declaring Arrays CHAPTER 4

Tasks Menu Reference. Introduction. Data Management APPENDIX 1

SAS. IT Service Level Management 2.1: Migration Documentation

The EXPLODE Procedure

Introduction. CHAPTER 3 Working in the SAS Windowing Environment

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

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

SAS Web Infrastructure Kit 1.0. Overview

Alternative ODS HTML Statements for Running Examples in Different Operating Environments

Chapter 13 Multivariate Techniques. Chapter Table of Contents

Enterprise Miner Software: Changes and Enhancements, Release 4.1

Loading Data. Introduction. Understanding the Volume Grid CHAPTER 2

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

SAS Workflow Manager 2.2: Administrator s Guide

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

SAS Infrastructure for Risk Management 3.4: User s Guide

OS/390 Platform Examples

Chapter 14 Introduction to the FACTEX Procedure

Routing the SAS Log and SAS Procedure Output

CREATING THE ANALYSIS

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

Handling Exceptions. Introduction. Using the Program Halt Handler CHAPTER 10

CHAPTER 7 Examples of Combining Compute Services and Data Transfer Services

Introduction to MDDBs

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

UNIX Platform Error Messages

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

The GTESTIT Procedure

QUEST Procedure Reference

SAS Model Manager 2.2. Tutorials

Getting Started with SAS Factory Miner 14.2

DBLOAD Procedure Reference

SAS IT Resource Management 3.3

SAS Web Report Studio 3.1

Chapter 7 File Access. Chapter Table of Contents

10 The First Steps 4 Chapter 2

The G4GRID Procedure. Introduction APPENDIX 1

Optimizing System Performance

SAS Graphics Accelerator: User s Guide

OpenVMS Operating Environment

DATA Step Debugger APPENDIX 3

UNIX Spawner Program. Starting the UNIX Spawner Program CHAPTER 36

OS/2: SPX Access Method

CHAPTER 7 Using Other SAS Software Products

Introduction. Understanding SAS/ACCESS Descriptor Files. CHAPTER 3 Defining SAS/ACCESS Descriptor Files

SAS Forecast Server 3.1. Administrator s Guide to Installation and Configuration

Chapter 9 Selected Examples. Queues with Reneging

Windows: SPX Access Method

Changes and Enhancements

Introduction. Getting Started with the Macro Facility CHAPTER 1

Formats. SAS Formats under OpenVMS. Writing Binary Data CHAPTER 13

Installation Instructions for SAS/ACCESS Interface to SAP BW

Choosing the Right Procedure

SAS Drug Development. SAS Macro API 1.3 User s Guide

The GSLIDE Procedure. Overview. About Text Slides CHAPTER 27

Routing Output. Producing Output with SAS Software CHAPTER 6

Using CVS Repositories with SAS

SAS Drug Development 3.3_03. December 14, 2007

Using SAS Files. Introduction CHAPTER 5

Batch Importing. Overview CHAPTER 4

Chapter 23 Introduction to the OPTEX Procedure

SAS Marketing Operations Management 6.0 R14 Update 2

SAS Universal Viewer 1.3

SAS Component Language (SCL) Interface to Agent Services

Changes and Enhancements

SAS/STAT 13.1 User s Guide. The NESTED Procedure

Locking SAS Data Objects

The TIMEPLOT Procedure

Transcription:

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

Part 2. Introduction 342

Chapter 23 Animating Graphs SAS/INSIGHT software provides two ways to animate graphs. You can animate selected observations in all graphs simultaneously. This produces the same visual effect as brushing but gives you precise control over the display. You can animate selected graphs individually. This restricts the animation to one graph and animates observations and other graph features. Animating Selection of Observations To animate the selection of observations, follow these steps. =) Open the AIR data set. This data set contains measurements of carbon monoxide and sulfur dioxide in city air over various times and dates. Since these data are time-dependent, they are a good subject for animation. Figure 23.1. AIR Data =) Select CO,thenSO2 in the data window using extended selection. =) Choose Analyze:Scatter Plot ( Y X ). This creates a scatter plot of CO versus SO2. =) Choose Edit:Windows:Animate. 343

Part 2. Introduction 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 23.2. Edit:Windows Menu This displays the animation dialog. The animation dialog contains a list of variables, a list of values, and a slider to control speed. Figure 23.3. Animation Dialog =) Select DAY in the list of variables, then click the Apply button. This animates the selection of observations over all values of DAY in the order in which they are displayed in the animation dialog. Observations are selected in both the scatter plot and the data window, and the current value is selected in the animation dialog. 344

Chapter 23. Animating Selection of Observations Figure 23.4. Animating Selection of Observations =) Adjust speed by clicking or dragging on the slider. When the slider is at the extreme left, speed is slowest; at the right, speed is fastest. Animation speed also depends on the speed of your host, the number of observations in your data set, and the number of graphs displayed. =) Click the Pause button to stop the animation. You can make the pattern of animation clearer by toggling the display of observations. =) Choose Observations from the scatter plot pop-up menu. This turns off the display of all deselected observations. =) Click the Apply button to restart the animation. You should begin to see the conditional distributions of CO and SO2 as DAY varies over the day of the week. =) Click in the Value list in the animation dialog. This enables you to stop the animation on particular values. You can click in the Value list to compare pollutant concentrations on different days. 345

Part 2. Introduction Figure 23.5. Animating Only Selected Observations The concentrations of CO and SO2 vary widely through most of the days but are much lower on Saturday and Sunday. Carbon monoxide is produced primarily by automobile exhaust, and automobile traffic appears to be reduced on the weekends. Sulfur dioxide concentrations are also lower; this pollutant is produced by power plants that operate at a reduced rate on weekends. 346

Chapter 23. Animating Selected Graphs Animating Selected Graphs Line plots are an effective way to look at time-dependent data. You can animate line plots and other graphs by selecting them before using the animation dialog. This animates lines and other features in the graph, not just selected observations. =) Select CO,thenSO2,thenHOUR in the data window. The last variable you select, HOUR, will receive the X role in the line plot. =) Choose Analyze:Line Plot ( Y X ). This creates a plot with two overlaid lines. The lines are jagged because the data contain seven observations for each hour. =) Select the line plot by clicking on any edge. Figure 23.6. Selected Line Plot =) Select DAY in the animation dialog, then click the Apply button. This animates the line plot, showing pollutant concentrations for each day of the week. 347

Part 2. Introduction Figure 23.7. Animating a Line Plot Notice the peak CO concentrations on weekday mornings and afternoons. might be caused by increased automobile emissions during rush-hour traffic. =) When you are finished, click Cancel to close the animation dialog. These 348

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.