SAS/GRAPH The Basics. Today’s Topics GOPTIONS GPLOT GCHART GCONTOUR G3D.

Slides:



Advertisements
Similar presentations
T-3 Histograms. Histogram Basics A histogram is a special type of bar graph that measures the frequency of data Horizontal axis: represents values in.
Advertisements

Introduction to Excel 2007 Part 2: Bar Graphs and Histograms February 5, 2008.
Reading Graphs and Charts are more attractive and easy to understand than tables enable the reader to ‘see’ patterns in the data are easy to use for comparisons.
1 Probabilistic and Statistical Techniques Lecture 3 Dr. Nader Okasha.
FIRST COURSE Excel Tutorial 4 Working with Charts and Graphics.
Graphing. The Important Elements of a Graph  Horizontal Axis (X-Axis)  Represents the passage of time and the numerical value of behavior.  The Independent.
COMPREHENSIVE Excel Tutorial 4 Working with Charts and Graphics.
1 Computing for Todays Lecture 10 Yumei Huo Fall 2006.
Let's zoom in on one corner of the coordinate plane
SAS Lecture 6 – SAS/GRAPH Aidan McDermott, May 3, 2005.
IPC Notes: Graphing.
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.
How to build graphs, charts and plots. For Categorical data If the data is nominal, then: Few values: Pie Chart Many Values: Pareto Chart (order of bars.
Introduction to SAS/Graph Don Miller 812 Oswald Tower
Drill-down Graphs By Heather Hoffman. Family Practice Department Project  Create drill-down graphs that depict % of patients for each CCS* over a given.
STATISTICAL GRAPHS.
Chart Components 4.02 Understand charts and graphs used in business.
Graphing. The Important Elements of a Graph  Horizontal Axis (X-Axis)  The Independent Variable. A change in this variable affects the y variable. 
Graphs in Science You Can Do It!!!.
Frequency Polygons and Ogives
Excel Charts and Graphs Instructor Heidi Lyons. Going from SAS into Excel  First, make sure you have the HTML output turned on Tools Options Preferences.
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS ESSENTIALS -- Elliott & Woodward1.
Making and Understanding Graphs What is a graph? A graph is a “picture” of your data.
Microsoft Office Illustrated Introductory, Premium Edition with Charts Working.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Use what you know to convert.35 km/hr to m/min. Graphing in Physics.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
Graphing Data in Science Looking for a pattern. Why use a graph? Easier to analyze data Visualize patterns in the data Looks for trends.
CREATING CHARTS By: Dr. Ennis - Cole OBJECTIVES b Identify the elements of an Excel chart b Identify the type of chart represents your data most effectively.
Chart Components 4.02 Understand charts and graphs used in business Revised by A. Moore
ON PATHS LESS TRODDEN… Excursions in SAS/GRAPH ® and PROC TABULATE Presented by Aaron Rabushka © Aaron Rabushka 2000.
Statistical Graphics for the SAS System Computing for Research I 01/29/2014 Nathaniel L Baker.
Engineering H191 - Drafting / CAD Gateway Engineering Education Coalition Lect 6P. 1Autumn Quarter Graphs and Graphing Lecture 6.
GRAPHING DATA. After the data is organized into a data table, a graph is created Graphs give a visual image of the observations (data) which helps the.
Bar Graphs Used for comparing separate groups. Axes X- axis: independent variable (what the scientist controls) Horizontal D – dependent R – responding.
Graph: a visual display of information or data
Intro to Excel - Session 4.11 Tutorial 4 - Session 4.1 Creating Charts.
Effective SAS greplay’ing and how to avoid stretching By David Mottershead Senior Programmer, Quanticate.
WORD VOCABULARY LIST #5 MICROSOFT OFFICE WORD VOCABULARY LIST #5 bar chart - A chart with bars that compares the quantities of two or more items.
GRASPING GRAPHING. Graphs are visual representations of data you collect in an experiment. There are many types of graphs including: bar, line, scatter.
Graphing Basics. Creating a graph Draw the y-axis on the vertical axis and the X-axis on the horizontal one Label what variable is on each of the axis.
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;
2.1 Frequency distribution Histogram, Frequency Polygon.
Creating a Scatter Plot On a Mac. Data in Excel Spreadsheet Insert the variable you want on the x-axis in the left column Insert the variable you want.
GRAPHING ON A COORDINATE PLANE. VOCABULARY Coordinate system- a system which uses one or more numbers or coordinates, to uniquely determine the position.
1 Statistical Software Programming. STAT 6360 –Statistical Software Programming SAS Graphics SAS has two main facilities for producing graphics: 1.ODS.
Drawing a Bar Graph Data Management. Bar Graphs Used to compare numbers directly.
CHART COMPONENTS Lesson 6 – Working With Charts and Graphics, continued.
MATH 2311 Section 1.5. Graphs and Describing Distributions Lets start with an example: Height measurements for a group of people were taken. The results.
Types of Graphs and Graphing Rules
Excel Part 4 Working with Charts and Graphics. XP Objectives Create an embedded chart Work with chart titles and legends Create and format a pie chart.
Excel Part 4 Working with Charts and Graphics. XP Objectives Create an embedded chart Work with chart titles and legends Create and format a pie chart.
Introduction to SAS ODS Graphics September 16, 2015 Rocio Lopez.
GRAPHING NOTES Understanding and constructing graphs.
13.7 Histograms SWBAT make and read a histogram SWBAT locate the quartiles of a set of data on a histogram SWBAT interpret a frequency polygon.
Microsoft Office XP Illustrated Introductory, Enhanced With Charts Working.
CHART COMPONENTS Lesson 6 – Working With Charts and Graphics, continued.
Chart Components 3.03 Identify charts and graphs used in business.
INTRODUCTTION TO CHARTS AND GRAPHS. Data Series I S IT A CHART OR A GRAPH ? A graph is a feature of a chart used to plot data. The chart is the total.
CHART COMPONENTS Excel. COMPONENTS OF CHARTS AND GRAPHS ▪ The y-axis is the left vertical side of the graph. It contains the numerical data. ▪ The x-axis.
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.
Tell a Story with the Data
Computing for Research I 01/26/2011 N. Baker
A survey was conducted on what types of television programme people preferred. 30 people were interviewed and the results of the survey were as follows.
Charts Session 5.
Histograms.
Let’s review some of the statistics you’ve learned in your first class: Univariate analyses (single variable) are done both graphically and numerically.
Presentation transcript:

SAS/GRAPH The Basics

Today’s Topics GOPTIONS GPLOT GCHART GCONTOUR G3D

Example Getting Started in SAS/GRAPH GOPTIONS: – Similar to OPTION, but specific to SAS/GRAPH – Gives instructions about appearance of graphs – Applies for entire SAS session or until reset within a session – Can appear anywhere in program, but preferably within SAS/GRAPH procedure

Examples 5.2.1, GPLOT:Creating a Scatter Plot Procedure GPLOT PROC GPLOT DATA=dataset; PLOT y*x(=z)/options; RUN; QUIT;

Example SYMBOL Statement Controls appearance of symbols in graph Options include: – VALUE= (V=) – INTERPOL= (I=) – COLOR= (C=) – LINE= (L=)

The OVERLAY and LEGEND options Appear after slash (/) in PLOT statement OVERLAY used when PLOT has more than one X or Y OVERLAY cannot be used with form y*x=z LEGEND option causes legend to print Legend prints automatically with y*x=z form, but not with OVERLAY option

Example AXIS Statement Controls appearance of axes Define which axis with VAXIS= and HAXIS= options in PLOT statement Some options available include: – LABEL= – ORDER= – VALUE= – MINOR= – MAJOR=

GCHART Horizontal Bar Charts (2D and 3D) Vertical Bar Charts (2D and 3D) Pie Charts (2D and 3D) Block Charts Star Charts

Examples 5.4.1, Creating a Histogram Use the VBAR statement Options include: – Specifying midpoints – Changing patterns in bars

Example Creating Horizontal and Vertical Bar Frequency Charts Statements are VBAR and HBAR When data are counts, use FREQ= option

Example Cross-Classification in Charts Classify bars by 2 variables instead of just one List one variable in HBAR or VBAR statement List second variable in GROUP= option

Examples 5.6.1, Plots of 3D Data Contour plot (Y*X=Z format) – Y-variable defines y-axis – X-variable defines x-axis – Z-variable defines levels of contours 3-D Plot (Y*X=Z format) – Y-variable defines y-axis – X-variable defines x-axis – Z-variable defines z-axis – Scatter plot or Surface plot

Contour Plots PROC GCONTOUR Options available include: – LEVELS: levels of contours – LLEVELS: line types of contours – HAXIS, VAXIS: same as GPLOT – HREF, VREF: draws reference lines – LEGEND: same as before

3-D Plots PROC G3D – Surface plot: PLOT statement – Scatter plot: SCATTER statement Options available with only the PLOT statement: – CTOP, CBOTTOM: color of top and bottom of surface Options available with only the SCATTER statement: – SHAPE: defines shapes of symbols – COLOR: defines color of symbols

Examples 5.6.3, 5.6.4, Options with PLOT or SCATTER in G3D ROTATE: rotates graph specified # of degrees TILT: tilts graph specified # of degrees (must be between 0 and 90) XTICKNUM, YTICKNUM: defines # of tick marks CAXIS: color of axes ZMAX, ZMIN: defines min and max values for z- axis GRID: draws grid “walls”