Title: A Demo of STAMP
1Graph-N-Go Demo
December 11, 2002 Charlie Hallahan
2Graph-N-Go Overview
Graph-N-Go is an interactive application for
producing simple or complex graphical
representations of data. You can use it for data
exploration or for creating presentation-quality
graphical images that can be printed or imported
into documents. It is designed to generate
graphs quickly with minimum effort on your part,
yet provide a rich feature set for customization.
3Graph-N-Go Overview
- With Graph-N-Go you can
- subset your data (from a SAS data set or SAS
MDDB) - identify the graphical roles for columns of your
data - create a wide variety of graphs including
standard bar, pie, plot, and overlay formats - choose the statistic when data is summarized
(frequency, percent, sum, etc.) - customize the presentation aspects of the graph
- create multiple graphical views of a data source
- export your work to a wide variety of file
formats - generate a SAS program that can create a similar
graph independent of Graph-N-Go - save and recall your work
4Starting Graph-N-Go
- Graph-N-Go (not available on mainframes) is an
interactive application that you can use to
generate presentation graphs, without writing any
SAS/GRAPH code. - You can start Graph-N-Go in several ways
- from the menus in any SAS window, select
Solutions? Reporting ? Graph-N-Go - submit either of the following from the SAS
command line - gng
- graphngo
- use an Explorer window to directly open a GFORM
entry. Double-click (or right- click and choose
Open) on a GFORM entry to start a Graph-N-Go
session using that entry.
5Starting Graph-N-Go
In order to begin working with Graph-N-Go, you
must have access to a SAS data set or MDDB
suitable for graphing. If you need a small,
simple data set to get started, see create a
sample data set. In general, the steps involved
in creating a graph are as follows Create a
model object. ? the data Create a viewer
object. ? the graph Attach the model object
to the viewer object. Specify data columns for
the viewer Specify the statistic to be computed.
6Sample Dataset
data sigstat.class(label 'Student
information')
input name 1-8 sex 11 age height weight
label name 'First
name'
sex 'Gender'
age
'Age in years'
height 'Height in inches'
weight 'Weight in pounds'
cards
Alice F 13 56.5 84.0
Becka F 13 65.3
98.0
Gail F 14 64.3 90.0
Karen F
12 56.3 77.0
Kathy F 12 59.8 84.5
Mary F 15 66.5 112.0
Sandy F 11 51.3
50.5
Sharon F 15 62.5 112.5
Robert
M 12 64.8 128.0
Thomas M 11 57.5 85.0
William M 15 66.5 112.0
run
7Starting Graph-N-Go
8 Creating a Model Object
Model workarea
Creating a Model Object Click either the SAS Data
Set Model button or the SAS MDDB Model button
on the left side of the Graph-N-Go window. A
model selection dialog will appear. Enter the
name of an existing SAS data set or MDDB and
press Enter. Alternatively, you can select the
one you want by clicking the ... button. Click
OK to close the dialog. You will now see a new
button-like model object representing your data
source in the upper workarea.
Viewer workarea
9Creating a Model Object
Selecting data from a SAS dataset. Note the
Column Filter tab for subsetting the columns to
be used for graphing.
10Creating a Viewer Object
lt-- data source in Model workarea
Creating a Viewer Object Click one of the four
graphical viewer buttons on the left side of the
Graph-N-Go window . In the lower workarea, you
will see a box with a dashed border and
hand-shaped pointer inside. Position the box
where you want it and click inside the lower
workarea. The newly created viewer object appears
as an empty box with a solid border and
description.
11Creating a Viewer Object
lt-- position the box in the Viewer workarea
12Attach the Model Object to the Viewer Object
- Perform one of the following actions to attach
the model to the viewer object - Drag the model object from the model workarea
and drop it on the viewer object. - Select Models gt from the viewer object's pop-up
menu and choose the model. - Select Properties from the viewer pop-up menu.
In the Data tab of the properties dialog, select
the model. Then close the properties dialog. - When you're done doing this, the viewer will
display a default graph of the model's data. It
is likely that this not the graph you want. The
next two steps configure the viewer so it
displays the information you want.
13Attach the Model Object to the Viewer Object
lt-- Model object
lt-- Viewer object Result of dragging Model
object onto Viewer object.
14Specify Data Columns for the Viewer
- Perform one of the following actions to specify
the desired data columns - Click on the axis labels, axis values, or any
title in the viewer object. A pop-up menu
specific to that graph element will appear, and
you can choose a different data column or
statistic. - Access the viewer object's pop-up menu. Toward
the bottom of the menu, you will see items such
as Category, Response, X, Y, etc. depending on
which viewer you created. These are called column
roles. Choose one of the role names. Another menu
will appear, allowing you to choose a specific
data column for that role. - Access the viewer object's pop-up menu and
choose Properties. In the Data tab of the
properties dialog, specify a column for each role
you want. Use the example graph to preview your
choices.
15Specify Data Columns for the Viewer
For example, clicking on the bars brings up the
following menu
16Customizing the Viewer Object
Right-clicking on a Viewer object reveals a large
number of options.
17Customizing the Viewer Object
For example, clicking on Category gt and changing
the variable from Gender to Age in Years results
in
18Saving a Graph
For example, to save a Bar Chart of Age grouped
by Gender, right click in the viewer object and
select Export gt . Then choose amongst External
File , Image Entry , and HTML. If External
File is selected, a number of file formats are
available.
19Graph-N-Go Toolbar
20Graph-N-Go Toolbar
21Graph-N-Go Options
22Graph-N-Go Options
23Graph-N-Go Options
24Graph-N-Go Options
25Graph-N-Go Options
26Graph-N-Go Options
27Demo to Produce Two Graphs
28Demo to Produce Two Graphs