home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / APPS / STATISTI / EPDISK.ZIP / EASIPLOT.DOC < prev    next >
Encoding:
Text File  |  1989-10-05  |  47.0 KB  |  1,337 lines

  1.  
  2.  
  3.  
  4.  
  5.                                 EASIPLOT
  6.  
  7.                     Documentation for EASIPLOT v. 1.02
  8.                          (C) ARC Scientific 1989
  9.  
  10.  
  11.  
  12.  
  13.        1    BASIC INFORMATION                                   1
  14.        1.1  Limitation of liability                             1
  15.        1.2  The shareware concept                               1
  16.        1.3  User support                                        3
  17.        1.4  Specifications                                      4
  18.        2    OVERVIEW OF EASIPLOT                                5
  19.        3    USING EASIPLOT WITH EASISTAT                        6
  20.        3.1  Problems running EASIPLOT from EASISTAT             6
  21.        3.2  The BASICS function                                 8
  22.        3.3  The CHISQ function                                  8
  23.        3.4  The ANOVA function                                  8
  24.        3.5  The REGRESS function                                8
  25.        3.6  The KOLMOGOROV function                             9
  26.        3.6  The COMPONENT function                              9
  27.        3.8  General points                                      9
  28.        4    RUNNING EASIPLOT ON ITS OWN                        11
  29.        5    RUNNING EASIPLOT FROM COMMAND FILES                14
  30.        6    FORMAT OF GRAPH FILES                              15
  31.        6    PRINTING GRAPHS                                    17
  32.        7    PROBLEMS WITH EASIPLOT                             19
  33.        8    ACKNOWLEDGMENTS                                    21
  34.  
  35.  
  36.  
  37.  
  38.  
  39.                                EASIPLOT.DOC                               
  40.  
  41.       Chapter 1             BASIC INFORMATION
  42.  
  43.       This documentation is copyright. It may only be reproduced, stored or
  44.       transmitted in whole or in part by any electronic or mechanical
  45.       means in accordance with the conditions outlined below.
  46.  
  47.       EASIPLOT is prototype of a free-standing graph-drawing program which
  48.       is specially designed to work with EASISTAT, a statistics package.
  49.       Both EASISTAT and EASIPLOT are Shareware packages - that is they may
  50.       be copied freely but people who find them useful are encouraged to
  51.       pay to become registered users. Registered users will receive up-to-
  52.       date versions of both programs and a full printed manual for
  53.       EASISTAT (we apologise that there is currently no other
  54.       documentation available for EASIPLOT, but if enough people register
  55.       then we will prepare a manual).
  56.  
  57.       1.1  LIMITATION OF LIABILITY
  58.  
  59.       It is possible that this manual or the EASIPLOT program contain
  60.       errors which mean that the program does not behave in the way
  61.       described. We have attempted to the best of our ability to
  62.       eliminate such errors, but it is possible that some do exist. If the
  63.       software or manual contains significant errors rendering the program
  64.       unusable then our liability is limited to replacing defective
  65.       material that we have supplied or refunding the purchase price paid.
  66.       No liability can be accepted for anybody who has not paid for the
  67.       program and become a registered user. In any event the liability of
  68.       ARC Scientific Ltd. with respect to problems associated with the use
  69.       of this program through such errors or through other circumstances
  70.       shall not exceed the price of the program as published by ARC
  71.       Scientific Ltd. or as paid by the user, whichever is the lower. Use
  72.       of the software supplied constitutes an understanding and acceptance
  73.       of such limitation of liability.
  74.  
  75.       1.2  THE SHAREWARE CONCEPT
  76.  
  77.       One way for the programmer to distribute useful programs to users
  78.       is through ordinary retail outlets - shops and mail order companies.
  79.       This demands high overheads for many middlemen and forces up the
  80.       final price of the program to the user. In addition the user must
  81.       pay for a program before he acquires it, usually having to judge its
  82.       merits second-hand by means of a review or advertising copy.
  83.       Programs acquired in this way are normally copyright and it is
  84.       forbidden and illegal to copy them. Often they are in fact copied
  85.       illegally, forcing up prices further, or else the distributor is
  86.       obliged to apply some form of copy-protection to the program which
  87.       reduces its convenience of use.
  88.  
  89.       The Shareware alternative is to allow individuals to copy a program
  90.       freely and to encourage them to pass it on to their friends and
  91.       colleagues. The program remains copyright but the holder of the
  92.       copyright grants restricted permission to individuals in possession
  93.       of the program to make copies of it. Potential users can evaluate
  94.       the program first-hand and are only then requested pay for the
  95.  
  96.                                     1                                     
  97.  
  98.  
  99.  
  100.  
  101.                                EASIPLOT.DOC                               
  102.  
  103.       program if they decide that it is worth the price asked for it.
  104.       Because of the low distribution costs the price for a Shareware
  105.       program can be many times lower than for an equivalent program sold
  106.       conventionally. No legal sanctions are applied to somebody who uses
  107.       the program without paying for it, but the success of the Shareware
  108.       concept depends on those people who do feel it is reasonable to pay
  109.       for something which they find useful. In the case of EASIPLOT and
  110.       EASISTAT people who pay for the program will be added to the list of
  111.       registered users and will receive a full printed manual for
  112.       EASISTAT.
  113.  
  114.       THE SHAREWARE AGREEMENT
  115.  
  116.       You are assumed to understand and accept the following conditions
  117.       as a condition of your possession and use of the EASIPLOT program
  118.       and associated files.
  119.  
  120.       EASIPLOT is distributed as a Shareware program. That means that you
  121.       are legally allowed to copy it and give copies to other people who
  122.       you think might like it - in fact you are encouraged to do so.
  123.       However please note the following points:
  124.  
  125.       1. The copyright of the program remains with ARC Scientific Limited.
  126.  
  127.       2. You must not charge more than a nominal fee for the program if you
  128.       pass it on to someone else, nor may you distribute the disk as part
  129.       of a promotional scheme.
  130.  
  131.       3. Please acknowledge the program in any publications of work for
  132.       which it was used.
  133.  
  134.       4. If you pass it on you must do so in unmodified form and the
  135.       following files must all be passed on together:
  136.  
  137.           EASIPLOT.EXE
  138.           PRMSP.EXE
  139.           EASIPLOT.DOC (This file)
  140.           EXAMPLE.DAT
  141.           PDEMO
  142.           PLOTDEMO.BAT
  143.           README
  144.           ORDINV.PRN
  145.           PRODUCTS
  146.           HDA.GRP
  147.           HISTO.GRP
  148.           ANOVA.GRP
  149.           REGRESS.GRP
  150.           TRIGS.GRP
  151.           FRILLY.GRP
  152.           WAVE.GRP
  153.  
  154.       5. Although the program may be freely copied and may be used for
  155.       evaluation purposes, anybody who thereafter continues to use it
  156.       should pay to become a registered user. Registered users will
  157.  
  158.                                     2                                     
  159.  
  160.  
  161.  
  162.  
  163.                                EASIPLOT.DOC                               
  164.  
  165.       receive an up-to-date version of the programs and the full printed
  166.       EASISTAT manual.
  167.  
  168.       The current price to register EASIPLOT and EASISTAT together is
  169.       thirty pounds sterling, which is inclusive of VAT and delivery
  170.       charges in the UK and is inclusive of shipping charges for overseas
  171.       orders. The price for orders from the US is fifty-five US dollars
  172.       inclusive of shipping. These prices are correct at time of writing,
  173.       but are liable to change without notice.
  174.  
  175.       Please address orders and enquiries about bulk discounts to:
  176.  
  177.          ARC Scientific Limited,
  178.          257 Woodstock Road,
  179.          Oxford OX2 7AE.
  180.  
  181.          Tel. 0865 310167
  182.  
  183.       Order and invoice forms are provided in the file ORDINV.PRN.
  184.  
  185.       If you give the program and the other files that go with it to
  186.       someone else then please explain to them how to set the
  187.       demonstration running. If you give them a floppy disk with the
  188.       files on we recommend that you write on the label:
  189.  
  190.       EASIPLOT Copyright (C) ARC Scientific Ltd. 1989
  191.  
  192.       Enter -     A:
  193.                   PLOTDEMO
  194.  
  195.       1.3  USER SUPPORT
  196.  
  197.       User support is limited to those people who have paid to become
  198.       registered users.
  199.  
  200.       Because of the low price of this program we are able to offer only
  201.       limited user support. If you have problems running EASIPLOT then
  202.       please consult this documentation and the EASISTAT manual carefully
  203.       to see if that can help. If you still need advice then please write
  204.       with a stamped addressed envelope to:
  205.  
  206.       EASIPLOT User Support,
  207.       ARC Scientific Limited,
  208.       257 Woodstock Road,
  209.       Oxford OX2 7AE.
  210.  
  211.       We will attempt to answer your query as quickly as possible,
  212.       though we cannot guarantee to be able to do so. Please give us
  213.       full details about the following information:
  214.  
  215.       Your DOS version number.
  216.       The type of computer and peripherals you have.
  217.       The names of any memory-resident programs.
  218.       The contents of your AUTOEXEC.BAT and CONFIG.SYS files.
  219.  
  220.                                     3                                     
  221.  
  222.  
  223.  
  224.  
  225.                                EASIPLOT.DOC                               
  226.  
  227.  
  228.       Please enclose a copy of any relevant files on a floppy disk. We
  229.       will return it.
  230.  
  231.       1.4  SPECIFICATIONS
  232.  
  233.       EASIPLOT runs on a personal computer using MS-DOS version 2.0 or
  234.       later. It requires at least 256K of memory, but will use more if
  235.       available. All data is held in memory for speed of calculations, so
  236.       the amount of data which can be processed is limited by the size of
  237.       the computer's memory. If a maths coprocessor chip is installed then
  238.       EASIPLOT will use it to increase the speed of calculations. EASIPLOT
  239.       will run under DESQview if the "Displays graphics information"
  240.       specified and under Microsoft Windows if the "Writes directly to
  241.       screen option" is selected from the PIFEDIT menu. EASIPLOT can save
  242.       files in Microsoft Paint format, allowing graphs to be read in and
  243.       treated as pictures which can be edited by Paint.
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.                                     4                                     
  283.  
  284.  
  285.  
  286.  
  287.                                EASIPLOT.DOC                               
  288.  
  289.       Chapter 2             OVERVIEW OF EASIPLOT
  290.  
  291.       EASIPLOT reads in data from text files called graph files. These
  292.       consist of a series of values arranged in rows and columns and some
  293.       other information about the default type of graph to be drawn, the
  294.       graph titles, etc. The format of these files is explained more fully
  295.       in the chapter entitled "Graph files", but if you are using EASIPLOT
  296.       with EASISTAT then you do not have to worry much about them because
  297.       EASISTAT prepares files in the correct format automatically. The
  298.       program is specially designed so that graphs can be displayed by
  299.       EASISTAT just by specifying a 'G' option on some of the functions.
  300.  
  301.       EASIPLOT can organise the data read in from the file in different
  302.       ways - values can be grouped according to rows, columns, rows and
  303.       columns, or pairs of columns can be plotted against each other.
  304.       Vertical bar charts, line graphs and scatter plots can be drawn, and
  305.       there are options to alter scaling, shading and other aspects of the
  306.       display. Titles may be added, deleted or changed. There is also some
  307.       capability to produce 3D graphs.
  308.  
  309.       The modified graph can be saved to disk as a graph file so that
  310.       the next time it is displayed it will be shown in its updated form.
  311.       The graph can also be saved to disk as a binary screendump. In this
  312.       form it can be printed out to a dot-matrix printer. An important
  313.       feature is that it can also be read in by Microsoft Paint and
  314.       further adjustments made to the graph image before eventually
  315.       printing it out.
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.                                     5                                     
  345.  
  346.  
  347.  
  348.  
  349.                                EASIPLOT.DOC                               
  350.  
  351.       Chapter 3          USING EASIPLOT WITH EASISTAT
  352.  
  353.       The easiest way to use EASIPLOT, and the purpose for which it is
  354.       specifically designed, is to provide a graphical representation of
  355.       some of EASISTAT's functions. The syntax to produce a graph is the
  356.       same for each function and is very simple. In the description that
  357.       follows we will assume that you are familiar with the EASISTAT
  358.       documentation. Special reference should be made to the description
  359.       of the CHISQ function which describes how EASISTAT can use PCG2 to
  360.       draw graphs. EASIPLOT has become available since the EASISTAT manual
  361.       was printed and EASIPLOT now uses it instead of PCG2.
  362.  
  363.       A graphing option is available from six of the EASISTAT functions:
  364.       CHISQ, ANOVA, BASICS, REGRESS, KOLMOGOROV and COMPONENTS. Each
  365.       produces a different type of graph. To get one of these functions to
  366.       produce a graph simply enter 'G' as an option after specifying the
  367.       function name. (The 'G' is shown on the help screen by the relevant
  368.       functions.) When this option is specified then EASISTAT will write a
  369.       specially formatted graph file to disk and then will run EASIPLOT to
  370.       display the graph by using EASISTAT's SYSTEM command. So all you
  371.       need to do to get a frequency distribution graph of column 15 of
  372.       EASISTAT's data is to type:
  373.  
  374.       BASICS G C15
  375.  
  376.       and EASISTAT will do the rest.
  377.  
  378.       Here are other examples:
  379.  
  380.       REGRESS G C15 C16  -> scatter plot of C16 against C15
  381.       ANOVA G C15        -> vertical scatter plots of C15 in groups
  382.       CHISQ G            -> bar charts of cells in contingency table
  383.       KOLMOGOROV G C15   -> cumulative distributions of C15 in two groups
  384.       COMPONENT G        -> general option for multiple columns of data
  385.  
  386.       Unless otherwise instructed EASISTAT will write a graph file called
  387.       GRAPH.ME and will ask EASIPLOT to display it. If the G is followed
  388.       immediately (no space) with a filename then EASISTAT will use this
  389.       instead of GRAPH.ME:
  390.  
  391.       B GFRED.GRP C15    -> creates graph file called FRED.GRP
  392.       CHISQ GRAPH.ME     -> creates graph file called HAPH.ME
  393.       etc.
  394.  
  395.       3.1  PROBLEMS RUNNING EASIPLOT FROM EASISTAT
  396.  
  397.       1. You get the following error message:
  398.  
  399.       Bad command or file name
  400.  
  401.       This simply means that EASISTAT cannot find EASIPLOT.EXE. The file
  402.       called EASIPLOT.EXE must either be in the current working directory
  403.       or somewhere on the DOS search path. Note that the current working
  404.       directory is most likely to be the one containing your data files
  405.  
  406.                                     6                                     
  407.  
  408.  
  409.  
  410.  
  411.                                EASIPLOT.DOC                               
  412.  
  413.       and such like, and not necessarily the one containing EASISTAT.EXE
  414.       (at least this is what we suggested in the EASISTAT manual). Either
  415.       you must copy EASIPLOT.EXE into the same directory as the one you
  416.       wish to work in (using the COPY command from DOS), or you must
  417.       change to the correct directory before using EASIPLOT (using the
  418.       CHDIR command). If you have a hard disk then the best solution by
  419.       far is to put EASIPLOT.EXE into a subdirectory which is somewhere on
  420.       the search path - this is usually set up with a PATH command in the
  421.       AUTOEXEC.BAT file, see your DOS manual for details.
  422.  
  423.       If you get this error message then EASISTAT will still have written
  424.       the correct graph file to disk and there is nothing to stop you
  425.       running EASIPLOT using EASISTAT's SYSTEM command and providing the
  426.       full pathname for EASIPLOT. Here's what we mean:
  427.  
  428.       Suppose EASIPLOT.EXE and EASISTAT.EXE are on the hard disk C in
  429.       subdirectory STATS, but that the data being studied is on a disk in
  430.       drive A. The best way to start EASISTAT would be as follows:
  431.  
  432.       A:
  433.       C:\STATS\EASISTAT
  434.  
  435.       If while using EASISTAT one wants to draw a graph and types
  436.  
  437.       B GBCOL5.GRP C5
  438.  
  439.       then EASISTAT will write a graph file called BCOL5.GRP to the disk
  440.       in drive A. It will then try to run EASIPLOT but since EASIPLOT
  441.       isn't on drive A the following error message will appear:
  442.  
  443.       Bad command or file name
  444.  
  445.       and one returns to EASISTAT without seeing a graph. But the graph
  446.       file is still there on disk so now one can type:
  447.  
  448.       SYSTEM C:\STATS\EASIPLOT GBCOL5.GRP
  449.  
  450.       and the graph will appear.
  451.  
  452.       2. You get an error message about an unrecognised display type.
  453.  
  454.       This situation is dealt with in the general section about problems
  455.       with EASIPLOT.
  456.  
  457.       3. You get some kind of "Out of memory" error message.
  458.  
  459.       There is not room in your computer's memory for EASISTAT, EASISTAT's
  460.       data, EASIPLOT, EASIPLOT's data and the EASIPLOT's menus all at
  461.       once. Not to worry, the graph file has been safely saved to disk and
  462.       can be displayed later by running EASIPLOT on its own after you have
  463.       quit EASISTAT.
  464.  
  465.       4. You get an error message from EASIPLOT complaining about the
  466.       syntax of its data.
  467.  
  468.                                     7                                     
  469.  
  470.  
  471.  
  472.  
  473.                                EASIPLOT.DOC                               
  474.  
  475.  
  476.       We hope you won't get this. EASISTAT should provide files in the
  477.       correct syntax. Check you have not made an error using EASISTAT,
  478.       then try examining the graph file with a word processor or text
  479.       editor to see if you can see what the problem is.
  480.  
  481.       3.2  THE BASICS FUNCTION
  482.  
  483.       When the 'G' option is selected from the BASICS function a graph
  484.       file is written to disk containing three columns of figures. In the
  485.       first column is a set of values for the variable studied. The second
  486.       column contains the number of items having that value and the third
  487.       column is a cumulative total of the number of items having the
  488.       stated value or below. The graph when first displayed plots the
  489.       first column along the X axis and the second on the Y axis,
  490.       producing a frequency distribution for the variable. If instead the
  491.       third column is plotted against the first then a cumulative
  492.       distibution is produced. To do this go to the Data menu (type 'D'),
  493.       then select the XY columns option (type '5') and select columns 1
  494.       and 3 (type '1,3' then keep pressing ENTER). The cumulative
  495.       frequency distribution will be displayed. (To see the original graph
  496.       again select columns 1 and 2 to be plotted against each other.)
  497.       Either graph may be displayed as a bar chart instead of a line graph
  498.       by typing 'V' when the main menu is showing. No key is needed for
  499.       this data.
  500.  
  501.       3.3  THE CHISQ FUNCTION
  502.  
  503.       The rows and columns of a contingency table are output as the rows
  504.       and columns of a graph file, which then produces a histogram of the
  505.       values of the rows and columns in the contingency table, produced in
  506.       the way described in the EASISTAT documentation. Selecting the
  507.       "Exchange" option (by typing 'X') swaps round whether the values are
  508.       grouped first into rows or first into columns of the table. The
  509.       columns are shaded appropiately and a key is provided.
  510.  
  511.       3.4  THE ANOVA FUNCTION
  512.  
  513.       The ANOVA function divides the values up into groups and each value
  514.       goes into a separate row of the graph file, the column it goes in
  515.       being determined by the conditions supplied to the ANOVA function.
  516.       EASIPLOT then groups the data in the graph file by columns and
  517.       displays a vertical scatter chart of points in each group. The mean
  518.       of each group can be displayed as a horizontal line by selecting the
  519.       "Regression and mean" function from the main menu (by typing 'R')
  520.       and then selecting "Toggle mean" (type '3' and then press ENTER).
  521.  
  522.       3.5  THE REGRESS FUNCTION
  523.  
  524.       The values of the first variable go into the first column of the graph
  525.       file and those of the second into the second. EASIPLOT plots the
  526.       second value against the first in a scatter diagram. To see the
  527.       regression line select the  "Regression and mean" function from the
  528.       main menu (by typing 'R') and then select "Toggle Y on X" (type '1'
  529.  
  530.                                     8                                     
  531.  
  532.  
  533.  
  534.  
  535.                                EASIPLOT.DOC                               
  536.  
  537.       and then press ENTER). Selecting "Exchange" (by typing 'X') will
  538.       swap over the two variables.
  539.  
  540.       3.6  THE KOLMOGOROV FUNCTION
  541.  
  542.       This graph file is the most complicated. The first column contains
  543.       the values under consideration. The second and sixth columns contain
  544.       the number of items having that value in each of the two groups. The
  545.       third and seventh columns contain the cumulative total of items having
  546.       that value or less, and the fourth and eighth columns contain the
  547.       percentages of each group having a given value and the fifth and
  548.       ninth columns contain the cumulative percentages. EASIPLOT plots the
  549.       fifth and ninth columns against the first to produce two overlaid
  550.       plots of the cumulative percentage totals for each group, expressed
  551.       as a fraction of the total number of items in each group. (The
  552.       Kolmogorov-Smirnov statistic is the maximum vertical distance
  553.       between these two lines.) Other interesting plots are of the two
  554.       absolute distributions (type 'D', then '1,2' and '1,6' then ENTER),
  555.       of the two cumulative distributions (type 'D', then '1,3' and '1,7'
  556.       then ENTER) and of the two percentage distributions (type 'D', then
  557.       '1,4' and '1,8' then ENTER). Other combinations can also be plotted.
  558.  
  559.       3.6  THE COMPONENT FUNCTION
  560.  
  561.       Unlike the other functions, the graph produced has nothing to do
  562.       with the function itself and indeed if the 'G' option is selected
  563.       with this function then the principal component analysis is not even
  564.       performed. Instead, this syntax is used simply as a convenient way
  565.       to specify a number of columns of data to be written to a graph
  566.       file. Any number of columns can be selected and they are simply
  567.       written into the graph file as they are. By default the first three
  568.       columns are assigned to the X, Y and Z axes of the graph and a
  569.       scatter diagram is drawn but it is anticipated that the data could
  570.       be used in many different ways, including three-dimensional plots
  571.       and multiple X-Y plots. Some examples of the flexibility of this
  572.       command can be seen when PDEMO is used to drive EASISTAT (by running
  573.       EASISTAT and then entering INPUT PDEMO).
  574.  
  575.       3.8  GENERAL POINTS
  576.  
  577.       EASIPLOT works well with EASISTAT. EASISTAT is used to produce the
  578.       basic data to be graphed and the titles, graph type and scale can
  579.       then be edited and adjusted by EASIPLOT to produce quite a helpful
  580.       graph. We recommend that you give each graph file a specific name
  581.       (rather than just leaving it to be called GRAPH.ME). Then you can
  582.       produce a number of graph files during a session using EASISTAT and
  583.       afterwards you can use EASIPLOT to "fine-tune" them. EASIPLOT is
  584.       much less robust (more likely to go wrong) than EASISTAT so it is
  585.       advisable to do most of your work with it after, rather than during,
  586.       a session with EASISTAT.
  587.  
  588.       If you have a large data set then there is unlikely to be room for
  589.       EASIPLOT and EASISTAT to run at once and you will have to just use
  590.       EASISTAT to write graph files to disk and then use EASIPLOT to view
  591.  
  592.                                     9                                     
  593.  
  594.  
  595.  
  596.  
  597.                                EASIPLOT.DOC                               
  598.  
  599.       them later. If you are running EASISTAT in batch mode (from an input
  600.       file) then when the 'G' option is selected a graph file will be
  601.       written to disk but EASIPLOT will not be run automatically. The
  602.       reason for this is that EASIPLOT runs only in interactive mode (from
  603.       the keyboard) and so it could not be run unattended. If you wish to
  604.       use a command file to display a graph then you can easily do so by
  605.       having it run EASIPLOT explicitly, eg:
  606.  
  607.       R GTIM C15 C16
  608.       SYSTEM EASIPLOT TIM
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.                                     10                                    
  655.  
  656.  
  657.  
  658.  
  659.                                EASIPLOT.DOC                               
  660.  
  661.       Chapter 4          RUNNING EASIPLOT ON ITS OWN
  662.  
  663.       EASIPLOT can display graph files from any source provided they are
  664.       the right format. They may be produced by EASISTAT or PC-File:dB, or
  665.       they can be typed out by hand.
  666.  
  667.       To display a graph file with EASIPLOT type:
  668.  
  669.       EASIPLOT [filename]
  670.  
  671.       If no file name is given then the name GRAPH.ME is used (so typing
  672.       EASIPLOT on its own if there is no file called GRAPH.ME present will
  673.       produce an error message saying that GRAPH.ME could not be found).
  674.  
  675.       If the graph file is read in successfully then it will be displayed
  676.       in its default format and the main menu will be shown. The following
  677.       options are available:
  678.  
  679.       M - hides the menu. To see it again press 'M' again.
  680.  
  681.       S - Scatter chart. Points are plotted.
  682.  
  683.       L - Lines are plotted.
  684.  
  685.       V - Vertical bar charts are shown.
  686.  
  687.       3 - turns 3-D on and off. The Z axis of the graph is not displayed
  688.       but goes off towards the top right corner of the screen. For line
  689.       and scatter charts points will be plotted in this dimension also.
  690.       For bar charts "blocks" are drawn instead of "bars". Note that
  691.       plotting points in 3 dimensions does not affect the autoscaling
  692.       which EASIPLOT performs, which means that things tend to go off the
  693.       screen. In such a situation the X and Y scales have to be adjusted
  694.       manually to get the graph to the right proportions.
  695.  
  696.       A - This allows access to the "Axes" menu. The X and Y axis can be
  697.       toggled on or off, as can the ticks and numerical values along the
  698.       axes. The whole graph can be rescaled by changing the maximum and
  699.       minimum values for X and Y, and the increment or distance between
  700.       ticks can also be altered. Enter three values for minimum, maximum
  701.       and increment separated by two commas.
  702.  
  703.       T - This allows all the different titles to be turned on or off or
  704.       edited. Which titles appear where depends on the type of data being
  705.       displayed and is probably best discovered by a bit of trial and
  706.       error. Special "floating" titles can also be added to the graph -
  707.       these can be made to appear anywhere on the screen and can read left
  708.       to right, upwards, downwards or upside down. To produce a floating
  709.       title first type in the message that you wish to have appear and
  710.       press ENTER and then type in the coordinates and angle for it,
  711.       separated by commas. The graph on the screen occupies the region
  712.       from 0,0 to 1,0.6 and the floating title can begin anywhere within
  713.       this region or within a border 0.1 units wide around it. So the
  714.       first value for the position must be between -0.1 and 1.1 and the
  715.  
  716.                                     11                                    
  717.  
  718.  
  719.  
  720.  
  721.                                EASIPLOT.DOC                               
  722.  
  723.       second value must be between -0.1 and 0.7 (these values are
  724.       completely independent of the graph scale, the title should always
  725.       appear in the same position on the screen). The values for the
  726.       rotation are in degrees anti-clockwise from the usual left to right.
  727.       If the rotation is omitted it will be taken as zero. So legitimate
  728.       values to input would be "0,0.3,90" or "0.7,-0.05,180" or "-.1,.1".
  729.  
  730.       R - This allows the mean Y value and regression lines to be toggled
  731.       on and off. In some cases the regression lines would be meaningless
  732.       and so they are drawn in the same place as the mean. "Y on X" means
  733.       "the regression of the Y variable on the X variable".
  734.  
  735.       X - This exchanges the data plotted in various ways. If the data was
  736.       grouped by columns it will now be grouped by rows and vice versa. If
  737.       it was grouped into rows and then columns it will now be grouped
  738.       into columns and then rows. If pairs of columns were plotted against
  739.       each other as X and Y variables they will be swapped over. Note that
  740.       using this option causes automatic rescaling of the axes.
  741.  
  742.       D - This option determines how the data in the graph file is
  743.       extracted for graphical representation. Different options are more
  744.       suitable for different types of data. All the values in one column
  745.       or row may be grouped together so that the row or column gives the
  746.       position on the X axis and the value gives the position on the Y
  747.       axis. The row and column may be combined to give the position on the
  748.       X axis, with either the row or column taking priority. Lastly
  749.       columns may be taken in pairs and plotted against each other. An
  750.       indefinite number of pairs of columns may be specified, and all will
  751.       be plotted simultaneously with an appropiate key. For each pair an
  752.       optional third column can be specified (the "Z value"). This
  753.       third column determines the width of the bars in a bar chart,
  754.       allowing variable widths to be used. For scatter and line graphs it
  755.       determines the distance that a point is displaced towards the top
  756.       right of screen. If no third column is specified then all the Z
  757.       values will be equal to the default which is 1. If a negative number
  758.       is given as the third value then this will be used as a constant
  759.       for all the data points (or rather its absolute value will be -
  760.       entering 2,3,-0.5 would plot column three against column two and all
  761.       the columns would have a Z value of 0.5; there is no way to assign a
  762.       negative constant Z value).
  763.  
  764.       K -  This allows the key to be shown, moved or removed and the
  765.       shading of the graph to be altered. There are five positions for the
  766.       key: top-left, top-right, bottom-left, bottom-right and centre. They
  767.       are numbered from one to five in that order. Different numbers for
  768.       the shading produce different types of point, line and bar. These
  769.       are best discovered by trial and error. Selecting a number other than
  770.       zero causes all points to be displayed according to that number.
  771.       Selecting zero (the default) allows points associated with different
  772.       variables to be displayed differently.
  773.  
  774.       F - This allows the graph to be saved either as a graph file - an
  775.       ASCII file containing all the information required to redisplay it
  776.       almost exactly as it appears on the screen (the only exceptions
  777.  
  778.                                     12                                    
  779.  
  780.  
  781.  
  782.  
  783.                                EASIPLOT.DOC                               
  784.  
  785.       being minor details like the key position and whether axes and
  786.       titles are toggled on or off) - or as a Microsoft Paint file. The
  787.       graph must be saved as a Microsoft Paint file before it can be
  788.       printed out, and this option also means that if you have Microsoft
  789.       Windows and Paint then you can adjust the graph to produce a more
  790.       polished product.
  791.  
  792.       Q - This option quits EASIPLOT. Be sure to save your work before
  793.       using it.
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.                                     13                                    
  841.  
  842.  
  843.  
  844.  
  845.                                EASIPLOT.DOC                               
  846.  
  847.       Chapter 5          RUNNING EASIPLOT FROM COMMAND FILES
  848.  
  849.       It is possible to run EASIPLOT from a command file in a similar way
  850.       to EASISTAT, although the procedure is not quite so straightforward.
  851.       The main purpose is so that graphs can automatically be modified and
  852.       saved in Microsoft Paint format from batch files, and if you
  853.       familiar with the use of batch files you may find this feature
  854.       helpful.
  855.  
  856.       To use a command file you must run EASIPLOT as follows:
  857.  
  858.       EASIPLOT graphfile commandfile
  859.  
  860.       The command file contains the keys that you would press to use
  861.       EASIPLOT interactively. Where EASIPLOT is just asking for one key to
  862.       be pressed at a time then a number of letters can all be put on one
  863.       line. Where EASIPLOT is asking for a whole line of information then
  864.       this must be entered in the command file on a new line. The underline
  865.       symbol '_' has the same effect as pushing the ENTER key and the caret
  866.       symbol '^' has the same effect as pushing the ESCAPE key.
  867.  
  868.       Example command file:
  869.  
  870.       mk1
  871.       a567
  872.       0,0.5,0.1
  873.       0,2,1
  874.       _
  875.       F1
  876.       fred.msp
  877.       _
  878.  
  879.       The first line turns off the main menu and toggles off the key. The
  880.       end of the line has the same effect as pushing ENTER and so the Key
  881.       menu is left and one returns to the main menu. Then the Axis menu is
  882.       selected, the X and Y scales are toggled on and the option to
  883.       rescale the axes is selected. The third and fourth lines then
  884.       provide the new X and Y scales. The underscore provides an ENTER to
  885.       leave the Axis menu and return to the main menu. F1 selects the
  886.       File menu and the option to save in MSP format and the next line
  887.       gives the filename to use. The final underscore acts as an ENTER to
  888.       leave the file menu. When there is nothing left in the command file
  889.       control returns to the user, although the command file could finish
  890.       with a Q (for quit) in which case EASIPLOT would finish and control
  891.       could return to DOS or a batch file from which it was called.
  892.  
  893.       There is another example of the use of a command file in the
  894.       demonstration PLOTDEMO.BAT. It creates a file called TEMP.JF by
  895.       using the DOS ECHO command and you may want to examine this file.
  896.  
  897.       Using command files with EASIPLOT is difficult, and you probably
  898.       will not want to do it until you have become quite familiar with the
  899.       program through using it interactively.
  900.  
  901.  
  902.                                     14                                    
  903.  
  904.  
  905.  
  906.  
  907.                                EASIPLOT.DOC                               
  908.  
  909.       Chapter 6          FORMAT OF GRAPH FILES
  910.  
  911.       EASIPLOT graph files are simple ASCII files containing information
  912.       describing the data to be printed arranged in the following way.
  913.  
  914.       Optional:
  915.  
  916.       One line beginning PARMS: followed by L, V or S for line,
  917.       vertical bar or scatter chart.
  918.  
  919.       Optional:
  920.  
  921.       Up to two lines beginning TITLE: followed by the main title for the
  922.       graph.
  923.  
  924.       Optional:
  925.  
  926.       One line beginning TITLEV: followed by a title for the vertical axis
  927.       of the graph (in certain data groupings).
  928.  
  929.       Optional:
  930.  
  931.       One line beginning TITLEC: followed by an overall title for the row
  932.       variables of the data.
  933.  
  934.       Obligatory:
  935.  
  936.       Lines beginning TITLEG:. There must be one more such line than there
  937.       are columns of data. The first TITLEG: may optionally be followed by
  938.       an overall title for the column variables. The second TITLEG: may
  939.       optionally be followed by a title for the first column of data, the
  940.       third TITLEG: can have a title for the second column, etc.
  941.  
  942.       All the above lines must appear before any lines containing data
  943.       values.
  944.  
  945.       Obligatory:
  946.  
  947.       Lines containing data values. These are numbers separated by commas.
  948.       There must be no comma after the last number. Missing values are
  949.       recognised as such. Optionally after the last number a colon may
  950.       appear, followed by a title for the variable that that row
  951.       represents.
  952.  
  953.       All of the following lines are not comaptible with PCG2, the
  954.       graphing program supplied with PC-File:dB. You may wish to use this
  955.       program instead of EASIPLOT to display some of your graphs because
  956.       it can produce pie charts and better looking titles. If so you must
  957.       delete all the following lines from your graph files.
  958.  
  959.       Optional:
  960.  
  961.       A line beginning DATATYPE: followed immediately by either GRC or GCR
  962.       or GR or GC or XY, meaning group by rows and columns, or by columns
  963.  
  964.                                     15                                    
  965.  
  966.  
  967.  
  968.  
  969.                                EASIPLOT.DOC                               
  970.  
  971.       and rows, or by rows, or by columns, or plot pairs of columns
  972.       against each other. In the last case only, more than one such line
  973.       can be used and the XY must be followed by numbers separated by
  974.       commas and specifying the X and Y and optionally Z variables.
  975.  
  976.       Optional:
  977.  
  978.       Lines each beginning MINX: or MAXX: or XINC: of MINY: or MAXY: or
  979.       YINC: specifying the minimum, maximum and increments of the X and Y
  980.       values when they are first displayed.
  981.  
  982.       Optional: Lines beginning TITLEF: followed by three numbers
  983.       separated by commas specifying the X and Y coordinates and rotation
  984.       of a floating title, followed by a comma and the title itself.
  985.  
  986.       Example graph file (unnecessarily silly):
  987.  
  988.       PARMS:V
  989.       TITLE:First title line
  990.       TITLE:Second title line
  991.       TITLEV:Vertical title up Y axis
  992.       TITLEG:Title for column variables
  993.       TITLEG:First column
  994.       TITLEG:Second column
  995.       TITLEG:Third column
  996.       2,1,3:First row
  997.       4,8,4:Second row
  998.       27,14,6:Third row
  999.       7,18,7:Fourth row
  1000.       4,15,9:Fifth row
  1001.       MINX:0
  1002.       MAXX:18.5
  1003.       XINC:1
  1004.       MINY:0
  1005.       MAXY:27
  1006.       YINC:1
  1007.       DATATYPE:XY2,1
  1008.       DATATYPE:XY3,1,-0.5
  1009.       TITLEF:0.1,0.1,90,Here is a floating title
  1010.       TITLEF:0.2,0.2,0,Here is another
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.                                     16                                    
  1027.  
  1028.  
  1029.  
  1030.  
  1031.                                EASIPLOT.DOC                               
  1032.  
  1033.       Chapter 6          PRINTING GRAPHS
  1034.  
  1035.       Before a graph can be printed it must be saved to disk as a
  1036.       Microsoft Paint file using option 1 from the "Files" menu. If you
  1037.       are going to use it with Microsoft paint the name you give it must
  1038.       end in the extension .MSP, but otherwise you can call it whatever
  1039.       you like. Then leave EASIPLOT.
  1040.  
  1041.       If you own Microsoft Windows and Paint then you can read in the file
  1042.       with Paint, alter it if you want and then print it out in the normal
  1043.       way.
  1044.  
  1045.       If you do not own Microsoft Paint then you can print out the saved
  1046.       file directly from disk to an Epson-compatible dot-matrix printer
  1047.       using a small program supplied called PRMSP.EXE. To use it,
  1048.       supposing you have saved your graph picture with the name SAVED.MSP
  1049.       you should type:
  1050.  
  1051.       PRMSP SAVED.MSP
  1052.  
  1053.       and the file will be printed.
  1054.  
  1055.       The full details of the options available with PRMSP are as follows:
  1056.  
  1057.       PRMSP infile.msp [outfile.prn] [/switch1] [/switch2] ... [/switchn]
  1058.  
  1059.       All the parameters are separated from each other by spaces:
  1060.  
  1061.       infile.msp - the name of the saved MSP file to be printed out.
  1062.  
  1063.       outfile.prn - the name of a file to be printed to. This is optional
  1064.       and if no name is given then the printer will be used instead.
  1065.  
  1066.       /I - this switch means print to an IBM-compatible printer instead of
  1067.       an Epson-compatible printer.
  1068.  
  1069.       /P - this switch means print the graph in "portrait" orientation -
  1070.       down the page - instead of the default "landscape" orientation -
  1071.       across the page.
  1072.  
  1073.       /H - high density - will work only with Epson-compatible 24-pin
  1074.       printer to give a picture three times smaller than above, going
  1075.       down the page.
  1076.  
  1077.       /D - draught mode - should be quicker but lower quality.
  1078.  
  1079.       /Snumber - this switch means print "number" spaces before each line
  1080.       of the picture - use it to control where the graph appears on the
  1081.       page. The default is 6.
  1082.  
  1083.       /Lnumber - this switch controls the line spacing on the printer, as
  1084.       used by the ESC A command. By default "number" is set to 8, but if
  1085.       the lines of your graph come out separated or overlapping, then
  1086.       using this switch may help you to adjust the line-spacing to produce
  1087.  
  1088.                                     17                                    
  1089.  
  1090.  
  1091.  
  1092.  
  1093.                                EASIPLOT.DOC                               
  1094.  
  1095.       a better picture.
  1096.  
  1097.       /Fnumber - this switch lets you determine whether a line feed (new
  1098.       line) character is sent to your printer with each carriage return
  1099.       character. If number is 0 then no line feed is sent, if it is 1 then
  1100.       a line feed is sent. The default is 1. If your graph comes out
  1101.       "double-spaced" - with gaps between each line - then specifying /F0
  1102.       may cure the problem.
  1103.  
  1104.       Example use of PRMSP:
  1105.  
  1106.       PRMSP ANOVA.MSP TEMP.PRN /S12 /I
  1107.  
  1108.       The file ANOVA.MSP would be printed out to the file TEMP.PRN, in a
  1109.       format suitable for sending to an IBM-compatible printer. Then
  1110.       later TEMP.PRN could be printed by entering:
  1111.  
  1112.       PRINT TEMP.PRN
  1113.  
  1114.       The advantage of this is that by using the DOS PRINT command
  1115.       printing occurs in background - you can get on with other things
  1116.       while the graph is being printed.
  1117.  
  1118.       Note: PRMSP cannot work if your computer does not send 8 data bits
  1119.       to the printer. This is sometimes altered by the MODE command which
  1120.       is usually in the AUTOEXEC.BAT file - see your DOS manual for
  1121.       details - and it is especially likely to have been used if your
  1122.       printer is on a serial cable rather than the ordinary "Centronics"
  1123.       parallel cable. Also make sure that your printer is set to receive 8
  1124.       bits rather than 7 - see your printer manual if you have problems.
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.                                     18                                    
  1151.  
  1152.  
  1153.  
  1154.  
  1155.                                EASIPLOT.DOC                               
  1156.  
  1157.       Chapter 7          PROBLEMS WITH EASIPLOT
  1158.  
  1159.       EASIPLOT is released as a protoype version so that users of EASISTAT
  1160.       can display their data graphically. EASIPLOT is not therefore as
  1161.       polished or user-friendly as we would like, but it is nevertheless
  1162.       functional. It is not as robust as EASISTAT and may crash
  1163.       gracelessly if it is mistreated. It will not be able to deal with
  1164.       huge amounts of data, and there are probably things which you would
  1165.       like it to do but which it cannot. The amount of extra work we put
  1166.       into EASIPLOT depends largely on how many people become registered
  1167.       users of EASISTAT and EASIPLOT - if nobody pays up then we won't
  1168.       spend a lot of our time adding bells and whistles to these programs,
  1169.       which we think would be a pity.
  1170.  
  1171.       The most likely problem to run into is that you will get an error
  1172.       message saying that EASIPLOT does not recognise the display device
  1173.       attached to your computer. This is the kind of monitor that you have
  1174.       (or rather the kind of display card that the monitor plugs into).
  1175.       This is a problem which you will either get straight away or never -
  1176.       you can't have it some days and not others. If EASIPLOT manages to
  1177.       draw any kind of graph on your screen then it has recognised the
  1178.       display OK and you can move on. If it draws nothing and maybe gives
  1179.       you the error message then here's what you have you to do. You have
  1180.       to set an environment variable to the name of your display type. To
  1181.       do this, before you run EASIPLOT or EASISTAT type the following
  1182.       line:
  1183.  
  1184.       SET FG_DISPLAY=xxxx
  1185.  
  1186.       except instead of xxxx type one of the following:
  1187.  
  1188.       HERC
  1189.       CGAHIRES
  1190.       EGAECD
  1191.       VGA11
  1192.       VGA12
  1193.       EGAMONO
  1194.       EGACOLOR
  1195.       TOSHIBA
  1196.       8514A
  1197.  
  1198.       Which one you type depends on the kind of display you have which you
  1199.       will have to determine from reading your computer manual or by
  1200.       asking your supplier. So if you have a Hercules-compatible display
  1201.       you would type:
  1202.  
  1203.       SET FG_DISPLAY=HERC
  1204.  
  1205.       and if you had a CGA display you would type:
  1206.  
  1207.       SET FG_DISPLAY=CGAHIRES
  1208.  
  1209.       and so on.
  1210.  
  1211.  
  1212.                                     19                                    
  1213.  
  1214.  
  1215.  
  1216.  
  1217.                                EASIPLOT.DOC                               
  1218.  
  1219.       If you can't work out what sort of display you have you will have to
  1220.       try each in turn until you find one which makes EASIPLOT work. You
  1221.       only have to set the display type once each time your computer is
  1222.       turned on, so when you've find the right command you should put it
  1223.       into your AUTOEXEC.BAT file.
  1224.  
  1225.       Another possible problem with EASIPLOT is that it fails with an "Out
  1226.       of memory" message of one sort or another. If this happens we
  1227.       recommend that you consult the chapter in the EASISTAT manual which
  1228.       deals with such problems and try the same approach as described
  1229.       there.
  1230.  
  1231.       If EASIPLOT exits as soon as it tries to read the graph file with a
  1232.       complaint about too many values or titles in the wrong place, then
  1233.       check the file carefully according to the specification described
  1234.       in the previous chapter.
  1235.  
  1236.       Certain kinds of graph will confuse EASIPLOT. For instance if you
  1237.       produce data from an ANOVA test and then plot column X against
  1238.       column Y it is certain that no row will have a value in both column
  1239.       X and Y at the same time - one or both will be missing. Doing this
  1240.       sort of thing will certainly confuse EASIPLOT, so we advise you to
  1241.       try to avoid it.
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.                                     20                                    
  1275.  
  1276.  
  1277.  
  1278.  
  1279.                                EASIPLOT.DOC                               
  1280.  
  1281.       Chapter 8                   ACKNOWLEDGMENTS
  1282.  
  1283.  
  1284.       EASIPLOT was programmed by Dave Curtis in C and was compiled with
  1285.       the Zortech compiler. DESQview is a trademark of Quarterdeck Office
  1286.       Systems. Microsoft Windows and Microsoft Paint are trademarks of
  1287.       Microsoft Corporation. IBM and PC are trademarks of International
  1288.       Business Machines Corporation. PC-File:dB and PCG2 are trademarks of
  1289.       Buttonware Incorporated.
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.                                     21                                    
  1337.