Copy and Paste Operations (Clipboard)
Multiple and Compound Graphs
Fitting, Plotting Functions
Graphs from the Graphs menu contain the most flexible graphing capabilities available in STATISTICA, offering literally thousands of different combinations of options to create the precise graphics that lead to accurate interpretation of data. These commands are also available from the STATISTICA Start button menu (the button in the lower-left corner of the STATISTICA window).
Following are the general categories of STATISTICA graphs available from the Graphs menu:
Other specialized graphs related to specific analyses (e.g., ANOVA plots of means, Nonlinear Estimation plots of fitted functions, Cluster Analysis tree diagrams) are accessible directly from analysis results dialogs.
Note that all STATISTICA Graph types offer the same customization options. Also, any type of graph can be created with STATISTICA Visual Basic.
No. Once a graph is displayed on the screen, regardless of how it was requested or defined, all graph customization options available in STATISTICA can be used to customize it. The customization options available for all graphs include appending new plots to existing graphs and linking and embedding graphs, as well as drawing, fitting, and graph restructuring options. Also, all these options can be used to customize graphs that were saved and later opened for additional editing.
All Graphs menu graphs can maintain automatic links to the data from which they were created as long as the graph specification dialog is active. Options for auto-updating graphs are available on the Options 1 tab of all graph specification dialogs. Note that if you want a graph to be dynamically updated when the data file changes, it must be placed in a stand-alone window (instead of in a workbook or report).
STATISTICA Graphs can be saved in the following formats:
Export via Copy and Paste operations (e.g., the Clipboard). The quickest way to export a graph is to copy it to the Clipboard and then paste it into another application. STATISTICA native, Windows metafile, and bitmap formats are created in the Clipboard and can be used in other applications.
STATISTICA Graphs can be pasted into other application documents (e.g., word processor documents or spreadsheets) as embedded objects or objects linked to graph files. If STATISTICA Graphs are pasted to other applications via Windows OLE, the graphs are tied to STATISTICA and can be interactively edited from within the other application.
In addition to the standard Windows mouse conventions for selecting objects, the mouse can be used in many other specialized applications in the graphics window in STATISTICA. The following is a list of representative examples:
Note that the mouse pointer will change to match the application in use. Press the ESC key to return the mouse pointer to the default mode. You can also use the mouse pointer to customize the graph.
To select an object in a graph, click on the object. Once an object has been selected, press the TAB key to navigate from object to object within your graph.
Ensure that the window containing the graph to be copied is active, and then press CTRL+C or click the Copy toolbar button.
STATISTICA Graphs can be pasted and linked or embedded in other application documents (e.g., word processor documents or spreadsheets) following standard OLE conventions. If STATISTICA Graphs are pasted to OLE-compatible applications, the graphs maintain their relation to STATISTICA and thus can be interactively edited from within the other application or updated when the STATISTICA Graphs change.
If the STATISTICA Graph copied to the Clipboard has been saved as an *.stg file, you can link it in other application documents (or STATISTICA's own) by selecting Paste Special from the Edit menu.
There are several copy options:
Even large portions of text (e.g., a report several pages long) can be pasted into STATISTICA Graphs using the Clipboard operations mentioned in the previous two topics. Additionally, you can paste a portion of a document into the graph window using the Paste Special command. To edit and customize the text within STATISTICA Graphs, double-click the text to display the Titles/Text dialog (for custom text) or the respective OLE server application (for pasting in text via the Paste Special command).
Both the Clipboard-based as well as inserting operations listed in the previous topic apply to all Windows compatible graphs and artwork (linking and embedding operations support any OLE-compliant objects).
The Clipboard-based operations (cut, copy, paste, link, embed) apply to all Windows-compatible artwork and graphs. Linking and embedding operations save graphs and artwork into bitmaps, Windows graphics metafiles, STATISTICA format graph files, and any OLE-compatible objects.
A multi-level undo option (available from the Edit menu, or by clicking the Undo toolbar button, or by pressing CTRL+Z) maintains up to 32 buffers (steps), which also include operations on objects.
The easiest way to place one graph into another is to copy a graph displayed in one window (press CTRL+C or click the Copy toolbar button), and then move to the target graph window and paste it there (press CTRL+V or click the Paste toolbar button). The pasted graph will be displayed on the target graph. Now you can move or resize it like any other custom graphic object.
You can also change the properties of the pasted object by selecting Object Properties from its respective shortcut menu (right-click on an object). You can also edit the embedded object by double-clicking on it (following the standard OLE conventions).
Graphs and artwork saved as files can also be dynamically linked or statically embedded in the current graph by using the standard OLE facility, accessible by clicking the Graph Tools toolbar Insert Object button or selecting OLE Object from the Insert menu.
Compound graphs are those that contain other graphs. STATISTICA can automatically create compound graphs (e.g., in the Quality Control module where one display contains four different types of graphs, or when you use the Multiple Graph AutoLayout Wizard.
Icons representing documents in Windows Explorer can be dragged across applications and dropped into STATISTICA Graphs. If the source application is OLE-compliant, the document will be displayed in the STATISTICA Graph.
If the source application is not OLE-compliant, the document will be represented as an icon, either of the source application (if an association exists in Windows for the document's file extension), or of the Windows Object Packager (if no association exists). These icons function as buttons; double-clicking on an icon will launch the application with which it is associated and open the file represented by the icon.
The quickest way to create a blank graph is to select Blank Graph from the Graphs - Multiple Graph Layouts submenu. You can also select Wizard from the Graphs - Multiple Graph Layouts submenu to display the AutoLayout Wizard - Step 1 dialog. In this dialog, click the Blank button in the Add Graphs group box, and then click the OK button to produce a "compound" graph containing one blank graph. You can then add new or existing graph objects (e.g., added text, embedded or linked objects, arrows, freehand drawings, previously saved graphs, etc.) to that blank graph.
The Wizard (see below) and the Templates commands (on the Graphs - Multiple Graph Layouts submenu) can also be used to design and produce a custom layout. Alternatively, the Snap to Grid facility can be used. The Alignment Grid (accessible from the View menu) and/or the dynamically updated cursor coordinates can be used to aid in the visual placement and alignment of the graph objects in the blank graph.
Several graphs can be printed on one page by linking or embedding them within a blank graph (see above). Although this can be done manually using cut-and-paste (and Snap to Grid), the easiest method is to use either the Multiple Graph Layouts - Wizard or the Multiple Graph Layouts - Templates, which automates placement of multiple graphs on one page.
The Multiple Graph AutoLayout Wizard can be accessed from the Graphs - Multiple Graph Layouts submenu. The Multiple Graph AutoLayout Wizard assists you in selecting and arranging graphs to be placed on the same page.
Graphs can be selected from all currently open STATISTICA Graph windows (in all currently open STATISTICA modules) or from graph files previously saved to disk; blank graphs (to be filled or replaced later) can also be used.
Categorized graphs are created by categorizing data into subsets and then displaying each of these subsets in a separate small component graph arranged in one display. For example, one graph can represent male subjects and another one female subjects, or high blood pressure females, low blood pressure females, high blood pressure males, etc.
In STATISTICA, categorized graphs are:
When categorized graphs are requested from output dialogs of specific analytic procedures that involving subsets of data, the graphs will automatically display the subsets that are already defined as part of the current analysis).
Alternatively, the categorized graphs requested from the Graphs menu offer a variety of methods to specify subsets using one or two grouping variables.
Specifically, categories can be defined by:
The following graph is a relatively complex example of a two-way categorized graph based on a mixed method of defining the subset graphs. The two-way categorization arranges small graphs like a two-way table (crosstabulation) based on two different criteria of categorization.
For example, the two rows of graphs represent categories defined based on values of variable Home_2 (cases where Home_2 is less than or equal to 104.624 and cases where it is greater than 104.624). The three columns of graphs represent subsets of cases defined using specific "multiple subset" definitions based on values of variable number 0 (i.e., case numbers) and variable Home_2.
Following is the 2D Categorized Scatterplots dialog from which the above graph was defined (select Scatterplots from the Graphs - Categorized Graphs menu).
Specifically, variable Work_1 and Work_2 are plotted in each small graph (as variables X and Y, respectively). The first of the two categorizations (X Categories, or "columns" of graphs) was defined as Multiple Subsets in the Specify Multiple Subsets dialog that is displayed after the Specify Subsets button is clicked.
You can make such a graph with a categorical variable having up to 1,000 categories. On the graph specification dialog, select Unique Values as the type of interval. Note that you can also choose to sort these categories in ascending or descending order on the graph.
Access the Plot: Fitting options pane of the Graph Options dialog, select the appropriate plot, and click the Add new fit button; then, select the desired type of function or smoothing procedure in the Fit type box. You can adjust the fitting options (e.g., stiffness or optimization settings) and the pattern for the graphical representation of the fit here as well. The pattern can also be adjusted by double-clicking on the fit line or surface in the graph.
In Graphs menu graphs, the display of the text of the fitted function equations can be requested by selecting either In title or As custom text in the Display fit expression box on the Options 2 tab of the graph specification dialog. Select Off in the Display fit expression box to suppress the display of fit equations.
Note that these options can be controlled globally (i.e., for all graphs) in the Analyses/Graphs: Display options pane of the Options dialog accessible from the Tools menu.
In all single plot and non-categorized graphs where only one function is fitted, the text of the equation is displayed in the first available line of the fixed title. Depending on the number of equations to be displayed, also in categorized graphs, the equations can be displayed in the fixed titles of the graph.
However, if more equations need to be displayed than the number of lines available in the fixed title, STATISTICA will create a custom text object on the graph and place the equations there. Potentially, such lists of equations can be very long (e.g., include 256 equations), and thus the custom text object can be large and partially cover the graph. However, the location of the listing of functions can be adjusted (the list can be moved around and edited like any other custom text object, the font size reduced, etc.).
When the listing of functions is very long, it is recommended to add some space around the graph and place the text object there. You can add space around the graph using either the Graph actual size/scaling toolbar button or the Set graph area toolbar button.
Select Custom Function Plots from either the Graphs - 2D Graphs or the Graphs - 3D XYZ Graphs submenu and specify the function in the respective dialog. Also, you can add a custom function plot to any existing graph: Access the Custom Function options pane of the Graph Options dialog and click the Add new function button. Then, use the options in the Custom Function options pane to specify the equation to be plotted in the 2D or 3D graph.
In addition to the standard math functions, a variety of functions representing distributions as well as their integrals and inverses are supported and can be plotted (including Beta, binomial, Cauchy, Chi-square, exponential, F, Gamma, geometric, Laplace, logistic, normal, log-normal, Pareto, Poisson, Student's t, and Weibull distributions).
The custom-function plotting facility (see the previous topic) accessible in the Custom Function options pane of the Graph Options dialog plots the requested (custom-defined) functions and overlays them on the existing graph. It does not fit these functions to the data. The most commonly used, predefined functions that can be fitted to the data and smoothing procedures is available in the Plot: Fitting options pane of the Graph Options dialog (e.g., Linear, Logarithmic, Exponential, Polynomial, Distance-Weighted least squares, Spline, and others).
Comprehensive facilities to fit to data (and interactively plot in two or three dimensions) user-defined functions of practically unlimited complexity are provided in the Nonlinear Estimation module.
Most properly configured printers supported by Windows can handle rotated fonts; however, some printer drivers support some of the advanced printer control features used by STATISTICA only when they are set to a higher resolution (e.g., higher than 300 DPI) and/or when they are set to print fonts as graphics. If you encounter problems (e.g., rotated text is printed as unrotated or "uncovered" text is revealed that should be covered), consult the documentation included with your printer for direction on printing TrueType fonts as graphics or setting your printer to a higher resolution.
Most properly configured printers supported by Windows can properly handle printing of non-transparent overlays used in STATISTICA Graphs; see the previous topic for advice on how to configure the printer driver.
In STATISTICA, all graph displays and printouts can be continuously scaled. STATISTICA will also automatically adjust the sizes of all fonts, markers, spacing, etc., such that manual adjustments of individual font sizes are rarely necessary.
You can interactively decrease or increase the size of the selected text or point marker by clicking the Decrease Font or Increase Font buttons (respectively) on the Graph Tools toolbar. Each click of the toolbar button changes the font size (or point marker) by one point (i.e., one click of the Increase Font button will increase the font size or point marker by one point). Note that if you have not selected any text or point markers, clicking these buttons will increase or decrease all text and point markers by one point.