| Often it is useful to plot two or more
data sets or population on the same axes. This makes it easy
to compare the data, using differing colors to show multiple populations
at the same time.
Overlays
may be created on either univariate (right) or bivariate displays
(see bottom). Within the layout editor you can edit the color and
order of the items, to customize the look of the overlay graph that
best highlights your data. Once an overlay has been defined,
the layout editor can create the same graph for many different samples
or sets of samples, by iterating
over a group in the workspace.
To create an overlay, drag a graph into the Layout
Editor. Then drag a second on top of the first one in the
layout. As the mouse moves into the original graph item, you'll
see that it highlights its borders to signify that it will accept
the contents of the drag. Drop the second graph (or
more, if you had multiple nodes selected in the workspace) on top
of the original, and an overlay is automatically created.
Histograms can optionally be offset when they are
overlaid, so as to distinguish the curves better. The feature, as
well as how much of an offset is used are specified in the Annotate
pane of the Graph Info dialog, summoned
by double clicking the graph (or selecting it and choosing Get Info...
from the Layout menu).
The Overlay Legend
As soon as you release the second node on the first,
the graph will change into an overlay. Overlays are
recognizable by the existence of a legend on the right side of the
graph. The number of the rows in the legend shows the number
of layers in the overlay.
The legend provides the user interface to edit several
aspects of the overlay. Click the mouse once on the legend
to select it. Then pass the mouse over different areas of
the legend to see to change the cursor to signify the different
editing operation that are available.
When the legend is selected, handles or small dark
boxes show up at each corner. You can drag the legend to move it.
To reorder the legend (and therefore change the
order in which the graphs are drawn on top of each other), click
on a line in the legend and drag up or down. Because events can
obscure others, you may want to have the smaller population on top
of the larger ones, though this depends greatly on the context of
your analysis.
Clicking the mouse in the colored box at the left
side of the legend will pop up a "rainbow palette," to
let you change the colors of the layers in the graph. If the
graph is a univariate (a histogram or cumulative distribution function)
the line weight and fill style are also editable from a popup menu
under the line style box (just to the right of the color box, and
only on univariate graphs).
The legend is used to control all of the attributes
of the graphs appearance. By default the legend is visible if there
are multiple items in an overlay, and hidden for single histograms
or 2D plots. If you want to edit the color, line weight, or dashing
of a single graph, you can double click on the graph, and set the
Show Legend attribute of the Annotation panel. |