Using SAS s PROC GPLOT to plot data and lines



Similar documents
Graphing in SAS Software

Logo Design/Development 1-on-1

HOW Interactive Design Conference Advanced HTML 5 / CSS 3 / jquery Chris Converse. codify kōd fī

This activity will show you how to draw graphs of algebraic functions in Excel.

QUANTITATIVE METHODS CLASSES WEEK SEVEN

Gestation Period as a function of Lifespan

C H A P T E R 1 Writing Reports with SAS

Create a Poster Using Publisher

Question 3: How do you find the relative extrema of a function?

CPS 220 Theory of Computation REGULAR LANGUAGES. Regular expressions

Introduction to Microsoft Excel 2007/2010

LEGEND OPTIONS USING MULTIPLE PLOT STATEMENTS IN PROC GPLOT

Continuity Cloud Virtual Firewall Guide

DOING MORE WITH WORD: MICROSOFT OFFICE 2010

Plotting: Customizing the Graph

Tank Level GPRS/GSM Wireless Monitoring System Solutions

Scatter Plots with Error Bars

MATLAB Workshop 14 - Plotting Data in MATLAB

Building a Horizontal Menu in Dreamweaver CS3 Using Spry R. Berdan

The example is taken from Sect. 1.2 of Vol. 1 of the CPN book.

Creating a PowerPoint Poster using Windows

Outside Cut 1 of fabric Cut 1 of interfacing

SAS/GRAPH 9.2 ODS Graphics Editor. User s Guide

4 Other useful features on the course web page. 5 Accessing SAS

Traffic Flow Analysis (2)

June Enprise Rent. Enprise Author: Document Version: Product: Product Version: SAP Version:

Microsoft Excel 2010 Charts and Graphs

SPECIAL VOWEL SOUNDS

Projections - 3D Viewing. Overview Lecture 4. Projection - 3D viewing. Projections. Projections Parallel Perspective

CSC 120: Computer Science for the Sciences (R section)

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Smart Board Notebook Software A guide for new Smart Board users

Adverse Selection and Moral Hazard in a Model With 2 States of the World

Creating Charts in Microsoft Excel A supplement to Chapter 5 of Quantitative Approaches in Business Studies

Scientific Graphing in Excel 2010

Search help. More on Office.com: images templates

Using Excel for Handling, Graphing, and Analyzing Scientific Data:

Introduction to Microsoft Word 2003

How to build text and objects in the Titler

Publisher 2010 Cheat Sheet

7 Relations and Functions

AP Calculus AB 2008 Scoring Guidelines

Excel -- Creating Charts

1.6. Piecewise Functions. LEARN ABOUT the Math. Representing the problem using a graphical model

Microsoft Excel 2010 Tutorial

Vector Network Analyzer

Foreign Exchange Markets and Exchange Rates

The Center for Teaching, Learning, & Technology

Switches and Indicators 01

5.4 Exponential Functions: Differentiation and Integration TOOTLIFTST:

CALCULATING MARGINAL PROBABILITIES IN PROC PROBIT Guy Pascale, Memorial Health Alliance

ModuMath Basic Math Basic Math Naming Whole Numbers Basic Math The Number Line Basic Math Addition of Whole Numbers, Part I

How to create pop-up menus

Petrel TIPS&TRICKS from SCM

Tutorial. for. HG2F/3F/4F Series Operator Interfaces

Dealing with Data in Excel 2010

Architecture of the proposed standard

A Note on Approximating. the Normal Distribution Function

Prism 6 Step-by-Step Example Linear Standard Curves Interpolating from a standard curve is a common way of quantifying the concentration of a sample.

Solids. Objective A: Volume of a Solids

Part 1: Background - Graphing

Tips for optimizing your publications for commercial printing

Visualizing Key Performance Indicators using the GKPI Procedure Brian Varney, COMSYS, a Manpower Company, Portage, MI

TI-Nspire Technology Version 3.2 Release Notes

Lab 11: Budgeting with Excel

Gage Studies for Continuous Data

ESRI China (Hong Kong) Limited

Microsoft Word defaults to left justified (aligned) paragraphs. This means that new lines automatically line up with the left margin.

PERFORMING REGRESSION ANALYSIS USING MICROSOFT EXCEL

Formulas, Functions and Charts

CONSTRUCTING SINGLE-SUBJECT REVERSAL DESIGN GRAPHS USING MICROSOFT WORD : A COMPREHENSIVE TUTORIAL

Quantitative vs. Categorical Data: A Difference Worth Knowing Stephen Few April 2005

Excel 2007 Basic knowledge

Lession: 2 Animation Tool: Synfig Card or Page based Icon and Event based Time based Pencil: Synfig Studio: Getting Started: Toolbox Canvas Panels

Tutorials. If you have any questions, comments, or suggestions about these lessons, don't hesitate to contact us at

Variable: characteristic that varies from one individual to another in the population

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

Spreadsheet. Parts of a Spreadsheet. Entry Bar

Adobe Illustrator CS5

Tutorial 3: Working with Tables Joining Multiple Databases in ArcGIS

Table of Contents TASK 1: DATA ANALYSIS TOOLPAK... 2 TASK 2: HISTOGRAMS... 5 TASK 3: ENTER MIDPOINT FORMULAS... 11

Lecture 2 Mathcad Basics

Using SAS to Create Graphs with Pop-up Functions Shiqun (Stan) Li, Minimax Information Services, NJ Wei Zhou, Lilly USA LLC, IN

Microsoft Excel 2010 Part 3: Advanced Excel

Guide To Creating Academic Posters Using Microsoft PowerPoint 2010

Internet Explorer Settings for use with Privia

6 th Annual EclipseCon Introduction to BIRT Report Development. John Ward

Data Visualization with SAS/Graph

Parallel and Distributed Programming. Performance Metrics

Multiple Graphs on One Page (Step-by-step approach) Yogesh Pande, Schering-Plough Corporation, Summit NJ

Tutorial 2: Using Excel in Data Analysis

SECTION 2-1: OVERVIEW SECTION 2-2: FREQUENCY DISTRIBUTIONS

DIGITAL DESIGN APPLICATIONS Word Exam REVIEW

CBA Fractions Student Sheet 1

What are the place values to the left of the decimal point and their associated powers of ten?

The Basics of Creating Graphs with SAS/GRAPH Software Jeff Cartier, SAS Institute Inc., Cary, NC

by John Donald, Lecturer, School of Accounting, Economics and Finance, Deakin University, Australia

Plotting Data with Microsoft Excel

Transcription:

Using SAS s PROC GPLOT to plot data and lins PROC GPLOT crats publication quality color graphics which can asily b xportd into documnts, prsntations, tc. To xport th graphs for futur us click on fil, xport. In th dialog box choos a fil nam and fil typ (*.mf works wll for putting graphs in word documnts or powrpoint prsntations) 1 proc gplot options; 2 titln options txt ; 2.a n = titl lvl 1-1 2.b c = color (black, rd, grn, blu, yllow, cyan, tc) 2.c f = font (swiss, simplx, script, italic, zapf, tc.) 2.d h = hight (dcimal valu, g 1,.5, 2, tc.) 3 symboln options; 3.a n = symbol numbr 1 to 255 3.b c = color (black, rd, grn, blu, yllow, cyan, tc) of symbol and intrpolation lin. 3.b.1 cv = color of symbol 3.b.2 ci = color of intrpolation lin 3.c f = font (swiss, simplx, script, italic, zapf, tc.) 3.d w = width (in pixils,.g., 1, 2, 3, tc.) 3. h = hight (in clls, dcimal valu, g 1,.5, 2, tc.) 3.f l = lin (typ lin, 1=solid, 2-46 various dashd lins) 3.g v = valu (typ of symbol,.g. plus, x, star, squar, diamond, triangl, dot, circl) 3.h i = intrpolation option 3.h.1 i=non no lin conncting points 3.h.2 i = join points connctd by a straight lin 3.h.3 i = splin plot lin intrpolatd using a cubic spin 4 labl y = ylabl x = xlabl ; rnams variabls as thy appar on graph. 5 plot yvariabl*xvariabl=n./ options; 5.a plot y*x=n; plots y against x using symboln 5.b plot y*x=n1 r*s=n2; crats 2 (or mor) sparat plots. 5.c plot y*x=n1 r*s=n2/ovrlay; puts plots on sam graph. 5.d plot y*x=n1 r*s=n2/ovrlay lgnd; puts plots on sam graph and adds lgnd. 5. plot y*x=n/hrf=5; plots y against x using symboln and puts vrtical rfrnc lin at x=5. 5.f plot y*x=n/hrf=5 lh=lintyp ch = color; lh spcifis typ of hrf lin (1-46), ch spcifis color of hrf lin. Can us vrf=c to spcify horizontal rfrnc lin, vh spcifis typ of vrf lin, cv spcifis color of vrf lin. 1

Som GPLOT xampls using th food xpnditur data data food; infil 'tabl5.2'; input y x; proc rg; modl y = x/p; output out=foodout p=yhat l95=lb u95=ub r=hat; Rad data, stimat rgrssion, obtain prdictd valus, crat output datast containing prdictd valus, 95% confidnc bands and rsiduals. * Exampl 1; symbol1 v=dot c=rd i=non h=.5; proc gplot data=foodout; labl y="food xpnditur" x="incom"; plot y*x=1; titl h=2 f=swiss "Exampl 1"; titl2 h=1.5 f=italic c=rd "Scattr diagram"; run; Exampl 1 plots data only using symbol1. labl statmnt changs what appars on axs. * Exampl 2; symbol2 v=dot c=rd i=non h=.5; symbol3 c=black i=join l=1 w=4; plot y*x=2 yhat*x=3/ovrlay lgnd; titl h=2 f=swiss "Exampl 2"; Exampl 2 plots data using symbol2 and fittd rgrssion lin using symbol3 * Exampl 3; symbol4 v=dot c=rd i=non h=.5; symbol5 c=black i=join l=1; symbol6 c=grn i=join l=2; plot y*x=4 yhat*x=5 lb*x=6 ub*x=6/ovrlay lgnd; titl h=2 f=swiss "Exampl 3"; titl3 h=1.5 f=italic c=rd "Confidnc bands includd"; Exampl 3 adds th confidnc bands using symbol6 * Exampl 4; symbol4 v=dot c=rd i=non h=.5; symbol5 c=black i=join l=1; symbol6 c=grn i=join l=2; plot y*x=4 yhat*x=5 lb*x=6 ub*x=6/ovrlay lgnd hrf=75 ch=purpl lh=3; titl h=2 f=swiss "Exampl 4"; titl3 h=1.5 f=italic c=rd "Confidnc bands & rfrnc lin includd"; Exampl 4 adds vrtical rfrnc lin at x=75, in th color purpl, using lintyp = 3 run; * run; 2

f o o d x p n d i t u r incom PLOT Pr di ct d Val u of 3

- PLOT Pr di ct d Val u of Lowr Bound of 95%C.I.(Individual Prd) Uppr Bound of 95%C.I.(Individual Prd) - PLOT Pr di ct d Val u of Lowr Bound of 95%C.I.(Individual Prd) Uppr Bound of 95%C.I.(Individual Prd) 4

Th graphs abov appar in color on your scrn, and if you hav a color printr thy will com out in color whn printd in a documnt, tc. In addition to th options illustratd abov thr ar options to add footnots to th graph, nots to th graph, of cours controlling color, siz, position, tc. SAS/GRAPH can produc bar charts pi charts maps 3-dimnsional graphs For many mor additional xampls us SAS s HELP mnu. whil in SAS click on HELP choos SAMPLE PROGRAMS doubl-click on SAS SAMPLE LIBRAR on th CONTENTS tab click on SAS/GRAPH slct an xampl. ou can copy th sampl cod and past it into th program window. Excut th fil to s what th program can do. Many of ths programs do quit tricky stuff. Don't gt boggd down in th dtails. ou can also visit th SAS wb sit: try http://www.sas.com/tchsup/download/sampl/readme for a list of sampls, of various typs, which you can download, not only for SAS/GRAPH but for rgrssion analysis and othr topics. 5