正在加载图片...
SUGI 30 Tutorials Paper 262-30 An Introduction to the Simplicity and Power of SAS/Graph Dan Bruns,Chattanooga,TN IN THE BEGINNING In today's hectic and ever increasing demand for more information faster,the graphics tools for SAS are a great way to get lots of information conveyed quickly.I have seen tremendous enhancements and improvements in the product since it was first introduced (and first leamned it)in the late 1970s.But the basic,underlying,data-driven principals (like for most SAS procedures)are still there and easy to leam.In this tutorial we will explore how a little understanding and knowledge of the basic concepts and options of SAS/Graph will get you on your way to producing all kinds of impressive and informative graphs that can be printed,imbedded in other docs,or made available to web sites. SOME BASICS There are several procedures and statements that come with the SAS/GRAPH product,but we will only cover a few of the most powerful procedures and all the global statements in order to give you a flavor of what can be done. Within each of the procedures and statements we cover there will be dozens of options,but we will cover just a few of the most powerful. SAS/GRAPH Procedures GANNO--displays graphs created by Annotate data sets. GAREABAR--enables you to produce an area bar chart showing the magnitudes of two variables for each category of data GBARLINE--produces bar line charts.Bar line charts are vertical bar charts with a plot overlay. GCHART--produces six types of charts:block charts,horizontal and vertical bar charts,pie and donut charts,and star charts.These charts graphically represent the value of a statistic calculated for one or more variables in an input SAS data set. GCONTOUR--produces plots that represent three-dimensional relationships.The colors,contours,or surface areas of a contour plot represent the values of a contour variable at each point in a plane that is formed by a dependent and an independent variable. GDEVICE--is a tool for examining and changing the parameters of the graphics device driver catalog entries used with SAS/GRAPH software. GFONT--displays new or existing fonts and creates user-generated fonts for use in SAS/GRAPH programs. GIMPORT--enables you to import into SAS/GRAPH software graphics output that is produced with other software applications,graphics output that is produced by SAS/GRAPH software,or graphics output that is produced on other machines. GMAP--produces two-dimensional(choropleth)or three-dimensional(block,prism.and surface)color maps that show variations of a variable value with respect to an area GOPTIONS--provides information about the values of graphics options and the global statement definitions that are currently in effect in your session. GPLOT--plots the values of two or more variables on a set of coordinate axes (X and Y).The coordinates of each point on the plot correspond to two variable values in an observation of the input data set GPRINT--converts a text file into graphics output that can be displayed or printed on a graphics output device. GPROJECT-processes traditional map data sets by converting spherical coordinates(longitude and latitude)into Cartesian coordinates for use by the GMAP procedure. GMAP--produces two-dimensional(choropleth)or three-dimensional(block,prism,and surface)color maps that show variations of a variable value with respect to an area. GRADAR--creates radar(or star)charts that show the relative frequency of data measures in quality control or market research problems.(The chart statistics are displayed along spokes that radiate from the center of the chart, hence the term "star"charts). GREDUCE--processes map data sets so that they can draw simpler maps with fewer boundary points. GREMOVE--combines unit areas defined in a map data set into larger unit areas by removing shared borders between the original unit areas. GREPLAY--displays and manages graphics output that is stored in SAS catalogs.The GREPLAY procedure also creates templates and color maps that you can use when you replay your graphics output. GSLIDE--is useful for creating text slides for presentations.You can overlay text slides on other graphics output with1 Paper 262-30 An Introduction to the Simplicity and Power of SAS/Graph® Dan Bruns, Chattanooga, TN IN THE BEGINNING In today’s hectic and ever increasing demand for more information faster, the graphics tools for SAS are a great way to get lots of information conveyed quickly. I have seen tremendous enhancements and improvements in the product since it was first introduced (and first learned it) in the late 1970s. But the basic, underlying, data-driven principals (like for most SAS procedures) are still there and easy to learn. In this tutorial we will explore how a little understanding and knowledge of the basic concepts and options of SAS/Graph will get you on your way to producing all kinds of impressive and informative graphs that can be printed, imbedded in other docs, or made available to web sites. SOME BASICS There are several procedures and statements that come with the SAS/GRAPH product, but we will only cover a few of the most powerful procedures and all the global statements in order to give you a flavor of what can be done. Within each of the procedures and statements we cover there will be dozens of options, but we will cover just a few of the most powerful. SAS/GRAPH Procedures GANNO -- displays graphs created by Annotate data sets. GAREABAR -- enables you to produce an area bar chart showing the magnitudes of two variables for each category of data. GBARLINE -- produces bar line charts. Bar line charts are vertical bar charts with a plot overlay. GCHART -- produces six types of charts: block charts, horizontal and vertical bar charts, pie and donut charts, and star charts. These charts graphically represent the value of a statistic calculated for one or more variables in an input SAS data set. GCONTOUR -- produces plots that represent three-dimensional relationships. The colors, contours, or surface areas of a contour plot represent the values of a contour variable at each point in a plane that is formed by a dependent and an independent variable. GDEVICE -- is a tool for examining and changing the parameters of the graphics device driver catalog entries used with SAS/GRAPH software. GFONT -- displays new or existing fonts and creates user-generated fonts for use in SAS/GRAPH programs. GIMPORT -- enables you to import into SAS/GRAPH software graphics output that is produced with other software applications, graphics output that is produced by SAS/GRAPH software, or graphics output that is produced on other machines. GMAP -- produces two-dimensional (choropleth) or three-dimensional (block, prism, and surface) color maps that show variations of a variable value with respect to an area. GOPTIONS -- provides information about the values of graphics options and the global statement definitions that are currently in effect in your session. GPLOT -- plots the values of two or more variables on a set of coordinate axes (X and Y). The coordinates of each point on the plot correspond to two variable values in an observation of the input data set. GPRINT -- converts a text file into graphics output that can be displayed or printed on a graphics output device. GPROJECT -- processes traditional map data sets by converting spherical coordinates (longitude and latitude) into Cartesian coordinates for use by the GMAP procedure. GMAP -- produces two-dimensional (choropleth) or three-dimensional (block, prism, and surface) color maps that show variations of a variable value with respect to an area. GRADAR -- creates radar (or star) charts that show the relative frequency of data measures in quality control or market research problems. (The chart statistics are displayed along spokes that radiate from the center of the chart, hence the term “star” charts). GREDUCE -- processes map data sets so that they can draw simpler maps with fewer boundary points. GREMOVE -- combines unit areas defined in a map data set into larger unit areas by removing shared borders between the original unit areas. GREPLAY -- displays and manages graphics output that is stored in SAS catalogs. The GREPLAY procedure also creates templates and color maps that you can use when you replay your graphics output. GSLIDE -- is useful for creating text slides for presentations. You can overlay text slides on other graphics output with SUGI 30 Tutorials
向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有