home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / e / estat21.zip / EASIDOC.ZIP / ESCHAP10.DOC < prev    next >
Text File  |  1992-06-30  |  18KB  |  397 lines

  1.  
  2.  
  3.      Chapter 10: RUNNING EASIGRAF
  4.  
  5.      EASIGRAF reads in data from text files called graph
  6.      files. These consist of a series of values arranged in
  7.      rows and columns and some other information about the
  8.      type of graph to be drawn, the graph titles, etc. The
  9.      format of these files is explained more fully in the
  10.      chapter entitled "Format of graph files", but if you are
  11.      using EASIGRAF with EASISTAT then you do not have to
  12.      worry much about them because EASISTAT prepares files in
  13.      the correct format automatically. The program is
  14.      specially designed so that graphs can be displayed by
  15.      EASISTAT just by specifying a "G" option on some of the
  16.      commands.
  17.  
  18.      EASIGRAF can organise the data read in from the file in
  19.      different ways - values can be grouped according to rows,
  20.      columns, rows and columns, or pairs of columns can be
  21.      plotted against each other. Vertical bar charts, line
  22.      graphs and scatter plots can be drawn, and there are
  23.      options to alter scaling, shading and other aspects of
  24.      the display. Titles may be added, deleted or changed.
  25.      There is also some capability to produce 3D graphs.
  26.  
  27.      The modified graph can be saved to disk as a graph file
  28.      so that the next time it is displayed it will be shown in
  29.      its updated form. The graph can also be saved to disk as
  30.      a binary screendump called a Microsoft Paint file or MSP
  31.      file for short. In this form it can be printed out to a
  32.      printer using the PRMSP program. An important feature is
  33.      that if you have the Microsoft Windows program you can
  34.      use Microsoft Paint to read in the MSP file and make
  35.      further adjustments to the graph image before eventually
  36.      printing it out.
  37.  
  38.      EASIGRAF is designed to use a similar format of graph
  39.      file to the graphing program called PCG2 which is
  40.      supplied with the Shareware database PC-File. This means
  41.      that for some kinds of graph you can use PCG2 instead of
  42.      EASIGRAF. The advantages of PCG2 are that it can produce
  43.      pie charts and it can generate PostScript output.
  44.      Unfortunately it does not plot Y values against X values
  45.      and it does not handle missing values in the same way as
  46.      EASIGRAF.
  47.  
  48.      EASIGRAF can display graph files from any source provided
  49.      they are in the correct format. They may be produced by
  50.      EASISTAT or PC-File, or they can be typed out by hand
  51.      using the EDIT program or another ASCII text editor. One
  52.      thing that is often particularly useful is to use an
  53.      editor to make adjustments to graph files, for example to
  54.      change titles and the like, after they have been produced
  55.      by EASISTAT. Using EASIGRAF itself to alter titles is
  56.      possible but can be rather slow and awkward.
  57.  
  58.      To display a graph file with EASIGRAF type:
  59.  
  60.      EASIGRAF [filename]
  61.  
  62.      If no file name is given then the name GRAPH.ME is used
  63.      (so typing EASIGRAF on its own if there is no file called
  64.      GRAPH.ME present in the directory will produce an error
  65.      
  66.        93 
  67.         Running EASIGRAF  
  68.      
  69.      message saying that GRAPH.ME could not be found).
  70.  
  71.      If the graph file is read in successfully then it will be
  72.      displayed in its default format and the main menu will be
  73.      shown. The following options are available:
  74.  
  75.  
  76.      10:1. Main menu
  77.  
  78.      The main menu is displayed which shows the commands
  79.      available by pressing a variety of keys detailed below.
  80.      Pressing M hides the main menu. To see it again press M
  81.      again.
  82.  
  83.  
  84.      10:2. Scatter chart
  85.  
  86.      This is selected by pressing the S key. Each pair of X
  87.      and Y values is plotted as a point. It is possible to
  88.      change the symbols used to display the points by using
  89.      the shading option from the KEY menu.
  90.  
  91.  
  92.      10:3. Line graph
  93.  
  94.      This is selected by pressing the L key. Each pair of X
  95.      and Y values is plotted as a point and lines are drawn
  96.      between them. It is possible to change the type of line
  97.      used by using the shading option from the "Key" menu.
  98.      Breaks in the lines can be produced by using the keyword
  99.      OMIT in the data of the graph file.
  100.  
  101.  
  102.      10:4. Vertical bar chart
  103.  
  104.      This is selected by pressing the V key. Each pair of X
  105.      and Y values is plotted as a vertical bar. The default
  106.      width for these bars is 1, but this can be changed
  107.      setting a constant value for the Z axis (see the section
  108.      on the "Data" menu). Alternatively variable width bars
  109.      can be produced by using values from a third data column
  110.      to provide the widths required. It is possible to change
  111.      the shading of the bars by using the shading option from
  112.      the "Key" menu. The bars can be displayed as solid blocks
  113.      if the 3 key is pressed (see below).
  114.  
  115.  
  116.      10:5. Three dimensions
  117.  
  118.      This option is turned on and off by pressing the 3 key.
  119.      The Z axis of the graph is not displayed but goes off
  120.      towards the top right corner of the screen. For line and
  121.      scatter charts points will be plotted in this dimension
  122.      also according to the value of the Z coordinate. A
  123.      vertical line is also drawn from the Y=0 plane to each
  124.      point to give a better impression of the height. For bar
  125.      charts "blocks" are drawn instead of "bars". Note that
  126.      plotting points in 3 dimensions does not affect the
  127.      autoscaling which EASIGRAF performs. Because this
  128.      autoscaling depends only on the X and Y values and not
  129.      the Z values, this means that points may tend to go off
  130.      the top of the screen. In such a situation the X and Y
  131.      
  132.        94 
  133.         Running EASIGRAF  
  134.      
  135.      scales have to be adjusted manually (by using the "Axes"
  136.      menu) to get the graph to the right proportions. If
  137.      three-dimensional plots are required the column for Z
  138.      coordinates will usually have to be selected explicitly
  139.      by using the "Data" menu, as in most cases the default Z
  140.      coordinate is a constant.
  141.  
  142.  
  143.      10:6. Axes menu
  144.  
  145.      This is selected by pressing the A key. The X and Y axis
  146.      can be toggled on or off, as can the ticks and numerical
  147.      values showing the scale along the axes. The whole graph
  148.      can be rescaled by changing the maximum and minimum
  149.      values for X and Y, and the increment or distance between
  150.      ticks can also be altered. Enter three values for
  151.      minimum, maximum and increment separated by two commas.
  152.      None of the changes made will take effect until you leave
  153.      the "Axes" menu by pressing ENTER, at which point the
  154.      graph will be redrawn with the new values.
  155.  
  156.  
  157.      10:7. Titles menu
  158.  
  159.      This is selected by pressing the T key. It allows all the
  160.      different titles to be turned on or off or edited. Which
  161.      titles appear where depends on the way the data is
  162.      organised as selected from the "Data" menu. For any
  163.      particular grouping this can be discovered by a bit of
  164.      trial and error, and by comparing how graphs appear on
  165.      the screen compared with the contents of the graph files.
  166.      An added complication is that the way some of the titles
  167.      are used depends not only on the type of graph as
  168.      selected from the "Data" menu, but also on whether there
  169.      are one or more groups of data to refer to. For example
  170.      EASIGRAF attempts to select the most suitable title for
  171.      the Y axis according to circumstance. If one column
  172.      provides the Y variables for a graph then the title of
  173.      that column will be used, but if more than one column
  174.      provides Y variables the vertical title (TITLEV) from the
  175.      graph file will be used instead. Similar considerations
  176.      apply to the X axis titles when there are one or more
  177.      than one groups of frequency data to display.
  178.  
  179.      Special "floating" titles can also be added to the graph
  180.      - these can be made to appear anywhere on the screen and
  181.      can read left to right, upwards, downwards or upside
  182.      down. To produce a floating title first type in the
  183.      message that you wish to have appear and press ENTER and
  184.      then type in the coordinates and angle for it, separated
  185.      by commas. The graph on the screen occupies the region
  186.      from coordinates 0,0 to 1,0.6 and the floating title can
  187.      begin anywhere within this region or within a border 0.1
  188.      units wide around it. So the first value for the position
  189.      must be between -0.1 and 1.1 and the second value must be
  190.      between -0.1 and 0.7 (these values are completely
  191.      independent of the graph scale, the title should always
  192.      appear in the same position on the screen). The values
  193.      for the rotation are in degrees anti-clockwise from the
  194.      usual left to right. If the rotation is omitted it will
  195.      be taken as zero. So legitimate values to input would be
  196.      "0,0.3,90" or "0.7,-0.05,180" or "-.1,.1".
  197.      
  198.        95 
  199.         Running EASIGRAF  
  200.      
  201.      10:8. Regression menu
  202.  
  203.      This is selected by pressing the R key. It allows the
  204.      mean Y value and regression lines to be toggled on and
  205.      off. In some types of graph the regression lines would be
  206.      meaningless and so they are drawn in the same place as
  207.      the mean. "Y on X" means "the regression of the Y
  208.      variable on the X variable".
  209.  
  210.  
  211.      10:9. Exchange data
  212.  
  213.      This is selected by pressing the X key. This exchanges
  214.      the data plotted in various ways. If the data points were
  215.      grouped by columns they will now be grouped by rows and
  216.      vice versa. If they were grouped into rows and then
  217.      columns they will now be grouped into columns and then
  218.      rows. If pairs of columns were plotted against each other
  219.      as X and Y variables they will be swapped over. Note that
  220.      using this option causes automatic rescaling of the axes.
  221.  
  222.  
  223.      10:10. Data menu
  224.  
  225.      This is selected by pressing the D key. It determines how
  226.      the data in the graph file is organised and extracted for
  227.      graphical representation. Different options are more
  228.      suitable for different types of data, and in many cases
  229.      choosing a different organisation of the data will
  230.      produce nonsensical results. Again, a little trial and
  231.      error will be harmless and instructive, and it is also
  232.      helpful to study the files used for the demonstrations.
  233.      The graph is redrawn when leaving this menu, and
  234.      automatic rescaling of the graph is always performed.
  235.  
  236.      10:10.1 Group by rows and columns
  237.  
  238.      This is most appropriate when the data values consist of
  239.      frequency data from a contingency table to be plotted as
  240.      a histogram. The row and column are combined to provide
  241.      the X coordinate for a point and the data value provides
  242.      the Y coordinate. The points are grouped according to the
  243.      row in the graph file. X axis titles for the groups of
  244.      points are provided by the row titles and the main X
  245.      title is provided by the overall row title (TITLEC). The
  246.      points are shaded differently according to the column in
  247.      the graph file and a key is provided linking this shading
  248.      with the column titles. Regression lines and means are
  249.      available for each group of points (i.e. all those from
  250.      the same row). An example of this kind of graph file is
  251.      HISTO.GRP, and this is the type of graph used by the
  252.      CHISQ command of EASISTAT to produce frequency
  253.      histograms.
  254.  
  255.      10:10.2 Group by columns and rows
  256.  
  257.      This option is the corollary of the above with the rows
  258.      and columns of the graph file exchanged. The points would
  259.      be grouped by columns and the shading and key would
  260.      indicate the row, with the column and row titles being
  261.      used appropriately. You can exchange between this
  262.      arrangement and the previous one by pressing the X key.
  263.      
  264.        96 
  265.         Running EASIGRAF  
  266.      
  267.      10:10.3 Group by rows
  268.  
  269.      The X coordinate of a point is provided by the row which
  270.      the data value appears in, and the Y coordinate is
  271.      provided by the value itelf. All values in the same row
  272.      will appear in the same vertical line. It is the
  273.      corollary of the the next option, which is more generally
  274.      useful.
  275.  
  276.      10:10.4 Group by columns
  277.  
  278.      The X coordinate of a point is provided by the column
  279.      which the data value appears in, and the Y coordinate is
  280.      provided by the value itelf. All values in the same
  281.      column will appear in the same vertical line. The X axis
  282.      titles are provided by the column titles and a main X
  283.      title is provided by the overall column title (the first
  284.      TITLEG). The Y axis title is provided by the vertical
  285.      title (TITLEV). This kind of graph is really only clear
  286.      when displayed as a scatter chart (selected by pressing
  287.      S). It is very useful for displaying the values of
  288.      different groups of measurements, and is used in this way
  289.      by the ANOVA command of EASISTAT. The means of the groups
  290.      can be displayed, but the regression lines would be
  291.      meaningless and so are displayed in the same place as the
  292.      mean. An example of this kind of graph file is ANOVA.GRP.
  293.      You can exchange between this arrangement and the
  294.      previous one by pressing the X key.
  295.  
  296.      10:10.5 XY columns
  297.  
  298.      Columns of values are taken in pairs and plotted against
  299.      each other, the first column providing the X coordinate
  300.      and the second the Y coordinate. An indefinite number of
  301.      pairs of columns may be specified, and all will be
  302.      plotted simultaneously. Each pair of columns is shaded
  303.      differently and if there is more than one pair an
  304.      appropriate key is provided. If there is only one pair of
  305.      columns then the titles for the X and Y axes are provided
  306.      by the titles of these columns. If there is more than one
  307.      pair then the Y axis title is provided by the vertical
  308.      title (TITLEV) and the X axis title is provided by the
  309.      overall group title (the first TITLEG).
  310.  
  311.      For each pair an optional third column can be specified
  312.      (the "Z value"). This third column determines the width
  313.      of the bars in a bar chart, allowing variable width bars
  314.      to be created. For scatter and line graphs it determines
  315.      the distance that a point is displaced towards the top
  316.      right of screen when the "three dimensions" option is
  317.      selected. If no third column is specified then all the Z
  318.      values will be equal to the default which is 1. If a
  319.      negative number is given as the third value then this is
  320.      taken to represent a constant rather than a column
  321.      number. The absolute value of this constant is the Z
  322.      coordinate for all the data points, so for example
  323.      entering 2,3,-0.5 would plot column three against column
  324.      two and all the columns would have a Z value of 0.5. The
  325.      most useful application of this is to produce bar charts
  326.      with bars of width other than 1. There is no way to
  327.      assign a negative constant Z value.
  328.  
  329.      
  330.        97 
  331.         Running EASIGRAF  
  332.      
  333.      10:11. Key menu
  334.  
  335.      This is selected by pressing the K key. It allows the key
  336.      to be toggled on or off or moved to a new position. It
  337.      also allows the shading of the graph to be altered. There
  338.      are five positions for the key: top-left, top-right,
  339.      bottom-left, bottom-right and centre. They are numbered
  340.      from one to five in that order. Different numbers for the
  341.      shading produce different types of point, line and bar.
  342.      These are best discovered by trial and error. Selecting a
  343.      number other than zero causes all points to be displayed
  344.      according to that number. Selecting zero (the default)
  345.      allows points associated with different variables to be
  346.      displayed differently. However there is no way to
  347.      explicitly assign different shadings to different
  348.      variables apart from this default scheme. For graphs for
  349.      which no key is appropriate, a box appears with the
  350.      message "No key". This can be turned off by toggling the
  351.      key. No changes made will take effect until you leave the
  352.      "Key" menu by pressing ENTER, at which point the graph
  353.      will be redrawn with the new values.
  354.  
  355.  
  356.      10:12. Files menu
  357.  
  358.      This is selected by pressing the F key. It allows the
  359.      graph to be saved either as a graph file or as a
  360.      Microsoft Paint (MSP) file. If it is saved as a graph
  361.      file then all the information required to redisplay it
  362.      almost exactly as it appears on the screen will be saved,
  363.      such as the current scale and title and axis
  364.      configurations.
  365.  
  366.      The graph must be saved as a Microsoft Paint file before
  367.      it can be printed out. Doing this also means that if you
  368.      have Microsoft Windows and Paint then you can edit the
  369.      graph by hand to produce a more polished product. The
  370.      newest versions of Windows Paint expects the file to be
  371.      in a format called BMP instead of MSP, but the MSP files
  372.      can still be read in provided the option to do this is
  373.      selected when using Paint.
  374.  
  375.  
  376.      10:13. Quit
  377.  
  378.      This is selected by pressing the Q key and quits
  379.      EASIGRAF. Be sure to write any MSP files that you want
  380.      and save any changes to the graph file first.
  381.  
  382.  
  383.  
  384.      Note that when you select an option from the menu and
  385.      then make changes, sometimes these changes will not be
  386.      apparent until you return from the option to the main
  387.      menu. It is at this point that the graph is redrawn. For
  388.      example if you wish to turn off the key you would type
  389.      "K1" to toggle the key. Nothing appears to happen.
  390.      However when you leave the "Key" menu by pressing ENTER
  391.      the graph is redrawn, this time without the key. This
  392.      sort of thing applies in several other situations.
  393.  
  394.  
  395.      
  396.        98 
  397.