Chapter 8: ODS Graphics ODS graphics were not available prior to SAS 9.2 They have been implemented across a wide range of procedures Functionality isn’t.

Slides:



Advertisements
Similar presentations
Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
Advertisements

Introduction to R Graphics
® Microsoft Office 2010 Excel Tutorial 4: Enhancing a Workbook with Charts and Graphs.
FIRST COURSE Excel Tutorial 4 Working with Charts and Graphics.
What is New in SAS 9.2? Graphics and More. A Brief History of SAS Graphics 6.x 7.x = had the Output Delivery System (ODS) but it was not widely available.
1 Computing for Todays Lecture 10 Yumei Huo Fall 2006.
Chapter 9 Creating Graphs in Illustrator. Objectives Create a graph Edit a graph using the Graph Data window Use the Group Selection tool Use the Graph.
XP New Perspectives on Microsoft Office Excel 2003 Tutorial 4 1 Microsoft Office Excel 2003 Tutorial 4 – Working With Charts and Graphics.
How To Make Graphs in Microsoft Excel Outline Making Bar Graphs Making Scatter Plots – 1 series Making Scatter Plots – Multiple Series.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 9 Margins and Print.
The gchart Procedure The gchart Procedure is used to create bar charts of various types (it can also create pie charts. It’s most basic form would look.
Instructor: Professor Cora Martinez, PhD Department of Civil and Environmental Engineering Florida International University.
Introduction to SAS Essentials Mastering SAS for Data Analytics
Graphing. The Important Elements of a Graph  Horizontal Axis (X-Axis)  The Independent Variable. A change in this variable affects the y variable. 
C51BR Applications of Spreadsheets 1 Chapter 16 Getting Started Making Charts.
Examples of different formulas and their uses....
Chapter 9 Creating and Designing Graphs. Creating a Graph A graph is a diagram of data that shows relationship among a set of numbers. Data can be represented.
The introduction to SPSS Ⅱ.Tables and Graphs for one variable ---Descriptive Statistics & Graphs.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
ODS Statistical Graphics in SAS 9.2 January 17, 2010.
A Picture Is Worth A Thousand Words. DAY 7: EXCEL CHAPTER 4 Tazin Afrin September 10,
Microsoft ® Office Excel 2007 Working with Charts.
Honors Physics Lab Journals Graphing. Lab Journal Entries  Number pages in consecutive order  Date all entries  Title all activities and investigations.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
Getting Started with TI-Interactive. TI-Interactive TI-Interactive can be used to create a variety of graphs. Scatter Plots, Line Plots, Histograms, Modified.
SPSS Instructions for Introduction to Biostatistics Larry Winner Department of Statistics University of Florida.
Creating Graphs in Illustrator
Lecture 3 Topic - Descriptive Procedures Programs 3-4 LSB 4:1-4.4; 4:9:4:11; 8:1-8:5; 5:1-5.2.
Exploring Microsoft Excel 2002 Chapter 4 Chapter 4 Graphs and Charts: Delivering a Message By Robert T. Grauer Maryann Barber Exploring Microsoft Excel.
PROC GPLOT GPLOT is used to make two dimensional scatter-plots. General Syntax: proc gplot data=data-set options; plot y-variable*x-variable/options; run;
Excel Chapter 3: Excel Charts Objectives Decide which chart type to create Create a chart Change the chart type Change the data source and structure Apply.
1 Statistical Software Programming. STAT 6360 –Statistical Software Programming SAS Graphics SAS has two main facilities for producing graphics: 1.ODS.
CHART COMPONENTS Lesson 6 – Working With Charts and Graphics, continued.
SAS/GRAPH The Basics. Today’s Topics GOPTIONS GPLOT GCHART GCONTOUR G3D.
Introduction to SAS ODS Graphics September 16, 2015 Rocio Lopez.
Lesson 1 Notes.  A chart is a representation of worksheet data. A chart can enhance and simplify the of numerical data in a worksheet because the between.
ODS Graphics By Example March 16, 2016 Rocio Lopez.
Excel Working with Charts and Graphs
Excel Charts and Graphs
Introduction to Graphing in SAS
Add More Zing to your Dashboards – Creating Zing Plot Gadgets
Chapter 5: Enhancing Your Output with ODS
Applied Business Forecasting and Regression Analysis
Using R Graphs in R.
Chapter 6: Modifying and Combining Data Sets
Lecture 25.
Excel Part 4 Working with Charts and Graphics
Tutorial 4: Enhancing a Workbook with Charts and Graphs
Jonathan W. Duggins; James Blum NC State University; UNC Wilmington
Lesson 3 Overview Descriptive Procedures Controlling SAS Output
Excel Part 4 Working with Charts and Graphics
Ms jorgensen Unit 1: Statistics and Graphical Representations
Microsoft Excel Illustrated
Exploring Microsoft Excel
Chapters 5 and 7 supplement
Microsoft Office Illustrated Introductory, Windows XP Edition
INTRODUCTION TO SGPLOT Zahir Raihan OVERVIEW  ODS Graphics  SGPLOT overview  Plot Content  High value plot statements  High value plot options 
Building Worksheet Charts
exploring Microsoft Office 2013 Plus
Statistical Analysis using SPSS
Getting Started with the SGPLOT Procedure: A Hands-On Workshop About the Presenter 1/14/2019 Josh Horstman is an independent statistical programming consultant.
Types of Graphs… and when to use them!.
Topic 7: Visualization Lesson 1 – Creating Charts in Excel
Clinical Graphs using SAS®
Bell Ringer When completing an experiment, you are testing your hypothesis. What are the three kinds of variables that you need to identify in your experiments?
Excel Part 4 Working with Charts and Graphics
Microsoft Office Illustrated Fundamentals
Lesson 13 Working with Tables
Presentation transcript:

Chapter 8: ODS Graphics ODS graphics were not available prior to SAS 9.2 They have been implemented across a wide range of procedures Functionality isn’t consistent © Fall 2011 John Grego and the University of South Carolina

Saving graphs Graphs can be routed to different devices (default is LISTING) For default output, graphs are available in the Results window as separate objects The default graph type is .png; it can be modified to .jpg, etc Some style choices are readily edited © Fall 2011 John Grego and the University of South Carolina

Customizing saved graphs ODS LISTING with the GPATH option can save graphs as single documents in a variety of formats. ODS GRAPHICS uses IMAGENAME to personalize graph names Format, size and resolution can also be specified. Once GPATH is set, the number of graphs with similar names can proliferate. Wait till first chart to run ODS LISTING and ODS GRAPHICS code. © Fall 2011 John Grego and the University of South Carolina

PROC SGPLOT Omnibus procedure to create ODS graphics We will review Bar charts Histograms and box plots Scatterplots Time series plots Fitted curves

PROC SGPLOT-Bar Charts Creates vertical or horizontal bar charts Groups can be added Bars can actually be summary statistics for continuous variables PROC SGPLOT; VBAR varname/ GROUP=catname; RESPONSE=varname STAT=stattype; LABEL varname=‘varlabel; Run SGPlotChart.sas

PROC SGPLOT-Histograms SCALE subcommand graphs percents, counts, or proportions on the vertical axis DENSITY overlays a normal curve (default) or kernel density estimate PROC SGPLOT; HISTOGRAM varname; DENSITY varname; DENSITY varname/TYPE=kernel; Default is PERCENT

PROC SGPLOT-Boxplots VBOX specifies graphing variables CATEGORY generates side-by-side plots PROC SGPLOT; VBOX varname/ CATEGORY=catvarname; Run SGPlotHist.sas

PROC SGPLOT-Scatter Plots Alternative to PROC GPLOT Multiple SCATTER statements produce overlaid plots LABEL improves the legend for overlaid plots GROUP creates different plotting symbols PROC SGPLOT; SCATTER X=hname Y=vname; GROUP=groupname; XAXIS LABEL=‘xlabel’ VALUES=(low TO high BY increment); Run Anscombe data. Run SGPlotPlot.sas in parts.

PROC SGPLOT-Time Series Plots Data points are connected by lines by default The horizontal axis will be time, date, etc LABEL command for dates follows naming conventions we have seen before PROC SGPLOT; SERIES X=timeindex Y=vname; GROUP=groupname; XAXIS LABEL=‘xlabel’ VALUES=(‘ddmmmyy’d TO ‘ddmmmyy’d BY increment); Run Broad River code.

PROC SGPLOT-Fitted Curves A scatterplot is automatically generated for REG, LOESS, or PBSPLINE CLM adds confidence bounds NOMARKER suppresses the oft-redundnat printing of the scatter plot PROC SGPLOT; REG X=hname Y=vname; LOESS X=hname Y=vname; PBSPLINE X=hname Y=vname; Run R script and run rest of Anscombe. Read in Faithful.xlsx and run faithful code.

Controlling SGPLOT features In addition to some of the features already discussed, we can reference lines (REFLINE), change the position of legends (KEYLEGEND), and add embedded text (INSET). We can also customize graph feature attributes (MARKERATTRS, LINEATTRS, LABELATTRS, FILLATTRS, etc)

PROC SGPANEL Panel graphs are an increasingly preferred alternative to traditional methods for multi-graph displays. PROC SGPANEL ; PANELBY variable-list; SCATTER X=hname Y=vname; SERIES X=index Y=vname; Etc.