Documente Academic
Documente Profesional
Documente Cultură
Chapter 14
QuickGraf
In this Chapter
Introduction
The QuickGraf Window
The Menu Bar
Graph Display Types
Models
Modifying Graph Elements
Printing Graphs
Introduction
QuickGraf is an interactive graphics module that interfaces
directly with all commands in the Analysis submenu. It is a
flexible tool for quickly producing and plotting graphs with a
variety of scaling, annotation and gridding options.
To open QuickGraf, you must be working with one of the four
commands available under Workspace } Analysis. Each of these
windows contains a Plot button in the bottom right-hand corner.
Clicking this button and selecting graphing options as necessary will
start the QuickGraf program and display the data from the analysis
command you were working with as a line, bar or scatter graph.
For more information on these commands and on accessing
QuickGraf from them, see the chapter which deals specifically with
the particular command you are working with (either Chapter 12:
Statistical Analysis or Chapter 13: Semi-Variogram Analysis).
Exploration
Page 2324
Title Bar
Menu Bar
Status Bar
Title Bar
Menu Bar
Graph
Graph
Parameters
button
Status
Bar
Title Bar
The title bar displays the name of the program (QuickGraf). It also
contains the minimize, restore (or maximize) and close buttons.
Page 2325
Menu Bar
The menu bar contains the menus you will use to determine how
your graph displays the analysis data as well as the look of your
graph, both on screen and printed out on paper. It also contains
commands to allow you to save, copy or print your graph. The menu
commands are explained in more detail later in this chapter.
Graph
The graph area in QuickGraf contains the plotting area as well as
the axes and their titles, the graph title and subtitle, the legend (if
any), the bitmap logo and company name, and the border.
The plotting area is the area of the actual graphed data, and includes
the graph line, bars or points, their annotation, and any grid lines.
You can alter the appearance of any of these elements using the
graph parameters button and the menu commands.
Status Bar
The status bar has three areas. The area at the left shows general
information, and displays an explanation of what each menu item
does when the mouse button is pointing to that command. The area
in the middle shows the type of graph currently being displayed
(i.e., bar, line or scatter) for modelling purposes. The third area, at
the far right, displays the graph coordinates of the current position
of the mouse pointer.
Exploration
Page 2326
Axis. You can use the Axis menu commands to change the
appearance and scale of the axes and grid lines.
File
The QuickGraf File menu has the following nine commands:
Page 2327
Exploration
Page 2328
Element
Graph
Title
Subtitle
Company Name
Series Graph Types
Legend
Data Limits
Border
X and Y Axes
Title
Series
Decimal Places
Scale
Limits
Models
Model 1 Type
Model 2 Type
Model 3 Type
When you have selected all the elements you wish to save as a
graph style, choose OK. You will be asked to enter a file name,
which will automatically be given the extension .QGS (QuickGraf
Style).
Print Setup
Clicking this command brings up the printer setup dialog box,
which allows you to select the printer you wish to use to print your
graph and any associated options.
Page 2329
Print Options
Selecting this command brings up the Print Parameters dialog box,
which allows you to determine how your printed graph will look.
Print Graph
This command prints your graph on the printer specified under
Print Setup. For more information on using the three Printing
commands on the File menu, see Printing Graphs on page 2375.
Exit QuickGraf
Select this command to close the active QuickGraf window
Graph
This menu contains five commands that allow you to specify the
data that your graph represents and how it appears.
Graph Type
This command allows you to select the type of graph you want to
produce in order to determine the modelling options that will be
available to you. Note that the graph type selected has no relation
to the way the graph is displayed, which is referred to as graph
display type or series display.
You can choose from three graph types:
Bar Graph. This type of graph does not allow you to display
models.
Line Graph. This type of graph allows you to display semivariogram models.
Exploration
Page 2330
Series Display
This command allows you to specify how each Y-series data set
specified above is to be displayed on the graph by bringing up either
the Plot Parameters dialog box or the Bar Graph Parameters dialog
box for the selected series.
Data Limits
Select this command to specify the upper and lower bounds for the
data to be displayed in the graph. These limits differ from grid
Page 2331
limits, which define the lower and upper bounds of the axes against
which the data is displayed.
Axis
This menu has two commands.
Model
This menu has one command.
Specify Models
This command allows you to determine up to three models for your
current graph, depending on the current graph type selected.
Util
The Util menu has three commands available.
Exploration
Page 2332
Titles
This command allows you to specify titles for the X and Y axes, a
title and subtitle for the graph itself, and your company name, if
desired. You can also determine how each title will appear,
including font, colour, size, and whether the text is bold, italicized,
or underlined. Titles are positioned automatically.
Legend
This command determines whether or not your graph displays a
legend, and if so, its position (top, bottom, left or right) relative to
the graph. The legend will show each statistical parameter selected,
along with colour used to display the corresponding graph.
Help
This menu has two commands.
Contents
Select this command to bring up the QuickGraf online help.
About QuickGraf
Selecting this command brings up a window displaying information
about QuickGraf.
Page 2333
Line Graph. This type of graph shows the data set as a line in
the plotting area. It is not necessarily possible to determine
exactly where along the line the individual data points are
located.
Line Graph with Symbols. This type of graph shows the data
set as a line in the plotting area, and also marks each actual
data point with a symbol.
Exploration
Page 2334
Line
Line+Symbol
Fill Area. Select this checkbox if you want the entire area
between the X axis and the graph line to be filled in.
Page 2335
Exploration
Page 2336
Colour. Select a colour for the graph line from the list. You
can choose from 20 colours.
Style. Select a line style for the axis or grid line from the
list. You can choose from five styles:
Solid
.......
..
.. ..
Page 2337
using any available data set. QuickGraf has four different kinds of
bar graphs available:
You can also modify the colour, width, hatch pattern and border of
the bars in your graph.
To create and/or modify a bar graph, follow these steps:
1. Select Graph } Y Axis Series Data Set.
2. Ensure that the data set you wish to portray with your bar
graph is one of the selected (highlighted) data sets and click
OK.. The data set will be displayed in the plotting area as a line
graph.
3. Double-click the graph that you wish to modify as a bar graph.
or
Select Graph } Series Display. From the list, choose the data series
you wish to display as a bar graph and click OK.
4. If the data set is currently displayed as a line or scatter graph,
the Plot Parameters dialog box will appear. From the Type
list, select one of the four types of bar graphs:
Vert. Bars
Exploration
Page 2338
Horz. Bars
Vert. 3D Bars
Horz. 3D Bars
5. The Bar Graph Parameters dialog box will appear: Enter the
following parameters:
Page 2339
along the axis from which the bars originate. For example, if
you enter a width of 1.0 for a vertical bar graph, each bar
will have a width of 1.0 units along the X axis. If your X axis
limits go from 1 to 10, a width of 1.0 will be much greater
relative to the scale of the axis than it would be if your X
axis limits go from 1 to 100.
Note that as you change the axis limits, QuickGraf will
automatically change the width of the bars so that they will
always appear to be the same size on the screen. Suppose,
for example, that you set your bar width to 1 while your X
axis limits are from 1 to 100. If you then change your axis
limits to 1 to 200, QuickGraf will automatically adjust your
bar width to 2 so that each bar will still take up the same
amount of space relative to the entire axis.
Scatter Graphs
In a scatter graph, or point graph, data is plotted as single points
within the plotting area. Scatter graphs are X-Y plots that show the
relationship between two variables (data sets) and are most
suitable for data sets where there is no strongly linear relationship
Exploration
Page 2340
between the individual points within the set, or where there are a
large number of data points clustered in a very small area.
Gemcom for Windows automatically displays data sets used to
create the coefficient correlation matrix in the multivariate
statistics function as scatter graphs; however, you can use any two
available data sets to create a scatter graph.
Within QuickGraf, you can modify the type of symbol used to mark
a point, as well as the colour, style and size of that symbol.
Follow this procedure to create and/or modify a scatter graph:
1. Select Graph } X Axis Series Data Set.
2. Select the data set (one only) that you wish to plot along the X
(horizontal) axis.
3. Select Graph } Y Axis Series Data Set.
4. Select the data set (one only) that you wish to plot along the Y
(vertical) axis.
5. Double-click one of the points to modify the graph.
or
Select Graph } Series Display. From the list, choose the data series
you wish to modify and click OK.
6. If the data set is currently displayed as a line, the Plot
Parameters dialog box will appear. From the Type list, select
Scattered. The style of Plot Parameters dialog box shown in
Figure 14-7 will appear. Note that the Line Attributes button
is dimmed, as a scatter graph has no lines. The Fill Area and
Spline checkboxes, although not dimmed, also have no effect in
a scatter graph.
7. Enter the following parameters in the Marker Attributes
area.
Page 2341
Exploration
Page 2342
Page 2343
If you suspect a problem with your data set, you should exit
QuickGraf and view your data using the Workspace Editor (see
Chapter 5: Editing Data). Doing this allows you to see how the data
in the field you used to plot the graph relates to data in other fields,
and thus to determine whether editing would be appropriate.
Models
Depending on the type of graph you are working with, you can also fit
semi-variogram models or regression lines to your graph.
If you have a scatter graph, you can fit a regression line model.
Linear regression can be done in two ways:
Linear Y on X
Linear X on Y
For scatter graphs, you can only select one model at a time.
Exploration
Page 2344
If you have a line graph, you can fit semi-variogram models to the
lines. There are six types of models available for line graphs:
Spherical
Exponential
Linear
Logarithmic
Gaussian
Nugget Effect
X = A + BY
Page 2345
Linear Y on X
Linear X on Y
No Model
2. Click OK.
Semi-Variogram Models
You can use QuickGraf to fit model semi-variograms to the
experimental semi-variograms created with the two semivariogram commands on the Workspace } Analysis submenu.
You can also fit these models to any other line graph you create
using QuickGraf.
Exploration
Page 2346
The model semi-variogram is the ideal shape for the curve that
illustrates the theoretical relationship between sample pairs as the
distance between them increases. The curve begins at or near the
origin, as samples that have coincidental locations should be the
same and thus have no variance. The semi-variance should increase
to the right, as the distance between the samples increases. The
curve will gradually flatten and the semi-variance value will
become constant. At this separation, there is no longer any
relationship between sample pairs and they can be considered
independent of each other. The distance at which this happens is
called the range of influence, and the variance at this point is called
the sill.
Page 2347
Exponential model
Linear model
Logarithmic model
Gaussian model
Nugget effect model
Exploration
Page 2348
Spherical Model
This model is as important to geostatistics as the normal
distribution is to statistics. It is the most commonly used model and
the easiest to understand.
when h a
Gamma( h ) = C
when h > a
Follow this procedure to fit your line graph to a spherical semivariogram model:
1. Select Model } Specify Models. A dialog box similar to the example
in Figure 14-12 will appear. Enter the following parameters:
Page 2349
2. Click OK.
Exploration
Page 2350
Exponential Model
This model rises more slowly than the spherical model and never
quite reaches the sill.
h
Gamma( h ) = C 1 exp
Follow this procedure to fit your line graph to an exponential semivariogram model:
1. Select Model } Specify Models. A dialog box similar to the example
in Figure 14-14 will appear. Enter the following parameters:
Page 2351
2. Click OK.
Exploration
Page 2352
Linear Model
This model has no sill value and can be either a straight line or a
curve, depending on the parameters entered.
where
=
=
p
y
Follow this procedure to fit your line graph to a linear semivariogram model:
1. Select Model } Specify Models. A dialog box similar to the example
in Figure 14-16 will appear. Enter the following parameters:
Page 2353
2. Click OK.
Exploration
Page 2354
Logarithmic Model
This model is also referred to as the De Wijsian model. It also has
no sill and is a linear model when plotted against the log of the
distance.
where
= constant
>1
y
h
Follow this procedure to fit your line graph to a logarithmic semivariogram model:
1. Select Model } Specify Models. A dialog box similar to the example
in Figure 14-18 will appear. Enter the following parameters:
Page 2355
2. Click OK.
Exploration
Page 2356
Gaussian Model
This model has a sill, and generally indicates the presence of trend
within the data.
The general formula for the gaussian model is
h2
Gamma( h ) = C 1 exp
a
Follow this procedure to fit your line graph to a gaussian semivariogram model:
1. Select Model } Specify Models. A dialog box similar to the example
in Figure 14-20 will appear. Enter the following parameters:
Page 2357
2. Click OK.
Exploration
Page 2358
Page 2359
2. Click OK.
Exploration
Page 2360
Nested Semi-Variograms
Often, it is not possible to fit a single model to the experimental
semi-variogram. In these cases, several models can be combined to
give nested models. In Gemcom for Windows, up to three models
can be nested together.
Model
handle
Model line
Graph line
Model
information
box
Page 2361
Interactive Models
Three of the semi-variogram models can be created as interactive
models. These are the spherical model, the exponential model, and
the nugget effect model. When the interactive model checkbox is
selected, you can use the mouse to modify these models by changing
their parameters dynamically.
Figure 14-23 shows a model created from two nested models, a
linear model and an exponential model. The exponential model is
interactive.
To modify an interactive model, click the model handle and move it
with the mouse until the model is in the desired position. Click the
model handle again to fix the model in place.
You will notice as you move the model handle around the plotting
area that the coordinates listed in the model information box for
that model will change to reflect the current position of the handle.
It is recommended that the origin of the graph be set to (0,0) when
using interactive models, because the control point values shown
are based on the actual graph coordinates. If, for example, the
origin of the graph is set to (100, 100), QuickGraf will display all
associated variables such as the range and sill as having a
minimum value of 100.
Note that the symbol used as the model handle depends on the type
of interactive model used. The default symbol for an interactive
spherical model is an asterisk (*). The sample above shows an
interactive exponential model, for which the default model handle
is a plus sign (+). The default model handle for the interactive
nugget effect model is a pound sign (#).
You can change these model handles by double-clicking them. This
will bring up the text parameters dialog box. For details on this
dialog box, see page 2364.
Exploration
Page 2362
Y-axis labels
Grid line
Y-axis title
Model
Plotting area
Model information
X axis
Axis intercept
and
graph origin
X-axis labels
Bitmap
logo
Company
Name
Legend
X-axis
title
Model
handle
Page 2363
Tiny
Small
Normal
Big
Huge
Note that not all text will be set to the same size: axis labels
will always be smaller than titles, for example, and the subtitle
will be smaller than the main title.
You can also change the size and appearance of individual text or
line elements through two dialog boxes, at least one of which will
form part of the modification dialog box for any given graph
element. Thus, it is important to be familiar with the Line
Parameters and Text Parameters dialog boxes when you modify
your graph elements.
Line Parameters
Any time you modify a graph element containing any kind of line,
you will have the option of modifying the line or lines using the
Line Parameters dialog box.
1. Enter the following parameters:
Colour. Select a colour for the graph line from the list.
Style. Select a line style for the axis or grid line from the
list.
Exploration
Page 2364
Text Parameters
Any time you modify a graph element containing text, you will have
the option of modifying that text using the Text Parameters dialog
box.
Page 2365
Font. Select the font type you wish to use from the list. The
fonts available will depend on your Windows settings.
Size: Select the font size for the text. The sizes given are
point sizes.
2. Click OK.
Left. The value entered here determines how far from the
left-most edge of the QuickGraf window the graph or
plotting area will start. This value is entered as a
percentage of the entire window. The default is set at 1.0%
for the graph, and 15.0% for the plotting area.
Top. The value entered here determines how far from the
top of the graph window the graph or plotting area will
start. This value is entered as a percentage of the entire
window. The default is set at 1.1% for the graph, and 15.0%
for the plotting area.
Exploration
Page 2366
Page 2367
Page 2368
Figure 14-28 shows a graph with three Y-axis data sets displayed
and formatted as different graph display types. Series 1 is
displayed as a 3D vertical bar graph, Series 2 as a scatter graph
with asterisks marking the individual points, and Series 3 as a line
graph with a solid line.
Sample Graph
With Three Data Sets
30
24
18
12
2.0
4.0
6.0
8.0
10.0
12.0
14.0
16.0
Software By Gemcom
Page 2369
Sample Graph
With Three Data Sets
30
24
18
12
2.0
4.0
6.0
8.0
10.0
12.0
14.0
16.0
Software By Gemcom
Figure 14-29: Graph with three data sets plotted as line graphs
For more information on modifying the various graph types, see the
appropriate subsection in Graph Display Types on page 2333.
Minimum Value. This sets the lower limit for the axis. Note
that this is not the same minimum value as that specified under
Data Limits.
Maximum Value. This sets the upper limit for the axis. Note
that this is not the same maximum value as that specified
under Data Limits.
Exploration
Page 2370
Click OK.
Page 2371
Figure 14-31: Axis dialog box with Line Parameters dialog box
Enter the following parameters for the axis:
Grids. You can choose whether to display major and minor grid
lines by clicking the relevant checkbox for each type. If you
select major grid lines, QuickGraf will display grid lines
originating from the labelled tickmarks along the axis Minor
grid lines originate from the unlabelled tickmarks along the
axis.
Once you have entered these parameters, you can specify how the
axes and grid lines will be displayed. To modify axis display, click
the Line Attributes button. To modify either major or minor grid
lines, click the Style button adjacent to the type of grid line you
wish to modify. In all three cases, the Line Parameters dialog box
will appear (see Figure 14-31).
Exploration
Page 2372
Axis Labels
You can modify the appearance and position of the axis labels (the
numbers along the axes) by double-clicking them. The Axis Labels
dialog box will appear. In the Labels Position area of the Axis
Labels dialog box, select an option to determine where you want the
axis labels. If you are modifying the X-axis labels, you can select
one of the following:
Below Axis. This option will position the X-axis labels below
the X axis. This is the default position.
Above Axis. This option will position the X-axis labels above
the X axis.
If you are modifying the Y-axis labels, you can select one of the
following:
Page 2373
Right of Plot. This option will place the Y-axis labels to the right
of the plot regardless of the position of the Y axis itself as defined
by the Intercept setting in the Vertical Axis dialog box.
Left of Plot. This option will place the Y-axis labels to the left of
the plot regardless of the position of the Y axis itself as defined by
the Intercept setting in the Vertical Axis dialog box.
You can also modify the appearance of the text in the axis labels by
clicking the Text Parameters button to bring up the Text
Parameters dialog box. Enter the desired parameters as outlined
on page 2364.
Note that the Text parameter is dimmed in this particular case,
allowing you to define only the properties of the axis labels text and
not the text itself. The text is determined by the program and by
the parameters you enter in the Axis Data dialog box, which comes
up when you select Axis Limits and Modes from the Axis menu.
When you have entered all desired parameters, click OK to accept
your settings and close the Axis Labels dialog box.
Exploration
Page 2374
Titles
To modify any title (graph title, graph subtitle, X or Y axis title, or
company name), double-click the text box containing the title you
wish to edit. Alternatively, you can choose the Titles command on
the Util menu, and select the title to modify from the Title
Selection dialog box.
The Text Parameters dialog box will appear. Enter your desired
modifications as outlined on page 2364.
Legend
To add a legend to your graph, select Util } Legend. The Legend
Options dialog box will appear.
Page 2375
have its own text entry and box). The Text Parameters dialog box
will appear. Enter the desired modifications as outlined on
page 2364.
Exploration
Page 2376
Printing Graphs
You can print your graph with a variety of formatting options using
any Windows-supported printer or plotter. Follow this procedure:
1. Ensure that your graph appears the way you want it by
modifying the graph elements as desired.
2. Select File } Print Setup. The Windows Print Setup dialog box
will appear. Select the printing device you wish to use from the
list of available devices and enter the remaining parameters
according to your Windows 95 or NT documentation and the
User Manual for your printer or plotter.
3. Select File } Print Options. The Print Parameters dialog box will
appear. Enter the following parameters:
Page 2377
Upper Left Corner Left and Top. The numbers you enter
in these cells determine the upper and left margins on the
paper. Enter the desired margins as a percentage of the
total printing area width (for Left) or height (for Top).
For example, if you are printing a graph on an 8 by 11
inch page with a total printing area of 8 by 10 ( inch
non-printable area on all four sides) and you set both Left
and Top at 10%, you will end up with a left margin of 0.8
inches and a top margin of 1.05 inches. Both margins are
measured from the edge of the available printing area, not
the edge of the page.
Exploration