www.sas.com > Service and Support > Technical Support
 
Technical Support SAS - The power to know(tm)
  TS Home | Intro to Services | News and Info | Contact TS | Site Map | FAQ | Feedback

Sample graphs and code using PROC GPLOT


Click on the graph or title below to view the source code.

This example uses the needle interpolation with the WIDTH= option Overlay a Plot Line on a Vertical Bar Chart

The Annotate facility is used to label individual plot lines created with PROC GPLOT Label Plot Lines

This example is detailed in TS389Plot X Axis Values in Data Order

The data points are labeled with the Annotate facility Label Data Points

AXIS and BUBBLE statement options create a bubble plot divided by reference lines into quadrants Create Axis Area Quadrants

Using PROC MEANS, the minimum and maximum values in a data set are found and assigned to macro variablesControl Axis Range with Macros

Uses the ANNOTATE facilty to create the top axis and uses the PLOT2 statement to create the right axisCreate Four Axes; Left, Right, Top and Bottom

Uses the ANNOTATE facilty to overlay a 45 degree reference line on a scatter plot Overlay a 45 Degree Reference Line

Uses PROC FREQ and the ANNOTATE facilty to create a
scatter plot with varying sized symbols Base Symbol Size Based on Frequency

This program uses the ANNOTATE facilty to overlay reference lines at all major and minor tick marks of a GPLOT with a Log scale Overlay Reference Lines on a Log Scale Axis

This program uses PROC GFONT to create the square root symbol within a user defined font Use a Special Symbol for Tick Mark Values

This program uses the ANNOTATE facilty to display the GPLOT data in a table on the right hand side of the graph Display Data in a Table on the Graph

This program uses the ANNOTATE facilty to create an haxis that has unevenly spaced tick marks on a GPLOT Space Horizontal Axis Values Unevenly

This program creates a 'dummy' Y variable that will be used to draw a plot line that appears to be a vbar raised off of the background which creates a shadow effect Create a 'Shadow' Behind a Needle Plot

The Annotate facility is used to 'erase' and redraw the piece of axis where the 'break' occurs Create a 'Break' on the Vertical Axis

Use a PLOT and PLOT2 statement with PROC GPLOT with the OVERLAY option to create a graph
with left and right axes Display Left and Right Axes with No Legend

A PLOT and PLOT2 statement is used to create both left and right axes. The OVERLAY and
LEGEND options are used in combination to create a legend Display Left and Right Axes with Two Legends

A PLOT and PLOT2 statement is used to create
both left and right axes. The OVERLAY and LEGEND options are used in combination to create a legend Display Left and Right Axes with One Legend

Control the Thickness of the Mean Lines Control Thickness of the Mean Lines - V7

Annotate is used to mimick the BUBBLE statement in PROC GPLOT to control the bubble size across by values Maintain Bubble Size Across By Values

Use Jittering to Offset Identical X,Y Values Use Jittering to Offset Identical X,Y Values

A program to do triangular plots using GPLOTCreate Triangle Plot

The BY statement is replaced with a WHERE statement and placed in a macro DO loopMaintain Symbols Across By Values

Change the Default Mean Symbol on a Hilo PlotChange the Mean Symbol on Hilo Plot

The MOVE= option is used to simulate superscript and subscript charactersCreate Superscripts and Subscripts

This example uses the Annotate Facility in SAS/GRAPH to generate Candle Stick plotsCreate Candle Stick Plots

This example uses the Annotate Facility in SAS/GRAPH to generate a Time Line style plotCreate Time Line Plot

This program is to create GRSEG entries with the BY-group value as the name and as part of the description fields on the catalog entryDisplay By-Group as Name & Description

This sample code will use the REG procedure to calculate the RSQUARE value for the variable values used in the GPLOT procedure when a linear regression interpolation is specified on a SYMBOL statementDisplay the RSQUARE Value

This sample uses the BWIDTH= option on the SYMBOL statement to specify the width of the box in a box plot or the width of the bar in hilob plotsChange the Width of the Box - V7 & higher

The purpose of this program is to order the LEGEND entries
  based upon the actual order of the legend or category variable
  in the original data set Order the LEGEND entries based upon the actual order of the legend or category variable in the original data set

This sample uses the REFLABEL option on an AXIS statement to label two different reference linesLabel Reference Line - V8 & higher

This sample uses the POINTLABEL= option on the SYMBOL statement to label the plot pointsLabel Data Points with POINTLABEL= - V8 & higher

This sample program uses the CBOX and CBORDER annotate variables with the Annotate Facility to blank out an area so that text and symbols can be more visible on a graphLabel Data Points CBOX & CBORDER - V7 & higher

Generate Bubble LabelsGenerate Bubble Labels

Specify VREF Values from VariableSpecify VREF Values from Variable

Create a KAGI PlotCreate a KAGI Plot

Generate Page Numbers on By-Group Processed PlotsGenerate Page Numbers on By-Group Processed Plots
Copyright (c) 2002 SAS Institute Inc. All Rights Reserved.
Terms of Use & Legal Information | Privacy Statement