home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / APPS / STATISTI / EPDISK.ZIP / PLOTDEMO.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-12-03  |  8.5 KB  |  267 lines

  1.         echo off
  2. cls
  3. echo .
  4. echo .
  5. echo .
  6.         rem PLOTDEMO.BAT
  7. echo .
  8. echo .
  9. echo                              EASIPLOT demonstration
  10. echo .
  11. echo         This is just a short demonstration which shows you some of the 
  12. echo         graphs that EASIPLOT can produce. For it to run properly you 
  13. echo         must be logged on to the disk containing the graph files (which 
  14. echo         are all called something.GRP) and the file called EASIPLOT.EXE 
  15. echo         must also be present. 
  16. echo .
  17. echo         All the graph files were produced using EASISTAT, but please 
  18. echo         note that this demonstration is not run from EASISTAT, but as an 
  19. echo         ordinary DOS batch file. There is another demonstration on the 
  20. echo         disk which is run from EASISTAT, called PDEMO (from which the 
  21. echo         data for this demonstration was produced). To run that one 
  22. echo         first run EASISTAT, then put this disk in the drive, and then 
  23. echo         while still in EASISTAT type INPUT PDEMO. To run this current 
  24. echo         demonstration you should have quit EASISTAT and then you just 
  25. echo         type PLOTDEMO. 
  26. echo .
  27.         pause
  28. echo .       
  29. echo         EASIPLOT and EASISTAT are Shareware programs. If you find 
  30. echo         them useful then please become a registered user by sending
  31. echo         a cheque for thirty pounds sterling to:
  32. echo .       
  33. echo           ARC Scientific Limited,
  34. echo           257 Woodstock Road,
  35. echo           Oxford OX2 7AE.
  36. echo .       
  37. echo           Tel. 0865 310167 
  38. echo .       
  39. echo         You will receive up-to-date versions of the programs and a 
  40. echo         full printed manual for EASISTAT (but not EASIPLOT). Please pass 
  41. echo         unmodified copies of these programs on to friends and colleagues 
  42. echo         together with the other files which are supplied with them. 
  43. echo .        
  44. echo         For further information about how to use EASIPLOT please
  45. echo         read the file called EASIPLOT.DOC which should be on your disk. 
  46. echo         To print it out when this demonstration has finished type:
  47. echo .        
  48. echo         PRINT EASIPLOT.DOC 
  49. echo .        
  50.         pause 
  51. echo .
  52. echo         Now we'll start the demonstration.
  53. echo .        
  54. echo         We'll start by showing the frequency distribution of HDA scores 
  55. echo         in a population. These are contained in a graph file called 
  56. echo         HDA.GRP. This batch file will run EASIPLOT to display the graph. 
  57. echo         The only thing you really need to know is how to quit EASIPLOT, 
  58. echo         which you do by pressing 'Q' when the graph is displayed. Then 
  59. echo         you will return to this demonstration. Information about the 
  60. echo         options available in EASIPLOT are described in the file 
  61. echo         EASIPLOT.DOC. 
  62. echo .        
  63. echo         You may wish to hide the menu displayed at the bottom of 
  64. echo         screen so that you can see the graph properly. To do this 
  65. echo         press 'M' and to get it back press 'M' again.
  66. echo .        
  67. echo         Press a key when you are ready to run EASIPLOT and view the 
  68. echo         graph. 
  69. echo .
  70. echo         Note: if EASIPLOT doesn't work the most likely reason will be 
  71. echo         that you first need to set FGDISPLAY, e.g. SET FG_DISPLAY=HERC
  72. echo .
  73. if not exist hda.grp goto :nofiles
  74.         pause
  75.         echo on
  76.         easiplot hda.grp
  77.         echo off
  78. cls
  79. echo .
  80. echo .
  81. echo .
  82. echo .        
  83. echo         Well, you got back here OK. If EASIPLOT didn't work 
  84. echo         properly then you may need to configure your system and you
  85. echo         may want to consult the file EASIPLOT.DOC before continuing
  86. echo         with this demonstation. If EASIPLOT said that it could not open
  87. echo         HDA.GRP then you may be logged on to the wrong disk. You should 
  88. echo         quit the demonstration, then type 
  89. echo .
  90. echo         A:
  91. echo         PLOTDEMO
  92. echo .
  93. echo         on different lines.
  94. echo .
  95. echo         If you wish to leave the demonstration press Control-C (then 
  96. echo         'Y'). 
  97. echo .        
  98.         pause
  99. echo .        
  100. echo         Still here? Good.
  101. echo .        
  102. echo         Now let's see a breakdown of GHQ scores (more emotional
  103. echo         distress) by social class. This information was derived from the 
  104. echo         ANOVA function of EASISTAT and is in the file called ANOVA.GRP.
  105. echo .
  106. echo         To see the means of each group when the graph is showing press 
  107. echo         'R', then '3' then ENTER. 
  108. echo .        
  109.         pause
  110.         echo on
  111.         easiplot anova.grp
  112.         echo off
  113. cls
  114. echo .
  115. echo .
  116. echo .
  117. echo .        
  118. echo         Next is a histogram of GHQ cases and non-cases (scores less
  119. echo         than 12) against social class. It's in HISTO.GRP.
  120. echo .        
  121. echo         Press a key to view the graph. When it is showing 'X' will 
  122. echo         swap over the groupings and '3' will make the blocks solid.
  123. echo .        
  124.         pause
  125.         echo on
  126.         easiplot histo.grp 
  127.         echo off
  128. cls
  129. echo .
  130. echo .
  131. echo .
  132. echo .                     
  133. echo         Now let's try plotting HDA against GHQ. The data is in 
  134. echo         REGRESS.GRP.
  135. echo .
  136. echo         To view the regression line when the graph is showing press
  137. echo         'R', then '1' then ENTER. 
  138. echo .        
  139.         pause
  140.         echo on
  141.         easiplot regress.grp
  142.         echo off
  143. cls
  144. echo .
  145. echo .
  146. echo .
  147. echo .        
  148. echo         To finish the demonstration we'll give examples of how EASIPLOT 
  149. echo         can produce graphs of mathematical functions. Press a key to see 
  150. echo         the graphs. 
  151. echo .        
  152.         pause
  153.         echo on
  154.         easiplot trigs.grp
  155.         echo off
  156. cls
  157. echo .
  158. echo .
  159. echo .
  160. echo .        
  161. echo         We'll try for a pseudo-3D one now. It's called the frilly 
  162. echo         circle. To see the third dimension press '3' when the graph is 
  163. echo         showing. 
  164. echo .        
  165.         pause
  166.         echo on
  167.         easiplot frilly.grp
  168.         echo off
  169. cls
  170. echo .
  171. echo .
  172. echo .
  173. echo .        
  174. echo         The equation for that curve was:
  175. echo           X=SIN(theta)  Y=SIN(8*theta)  and  Z=COS(theta)
  176. echo .        
  177. echo         Like EASISTAT, it is possible to control EASIPLOT from a 
  178. echo         command file. To demonstrate this we'll first create a file 
  179. echo         called TEMP.JF:
  180.  
  181.  echo mk1 > temp.jf
  182. if not exist temp.jf goto skipbatch
  183.  echo t67 >> temp.jf
  184.  echo Here's a floating title >>temp.jf
  185.  echo 0.1,0.1,0 >>temp.jf
  186.  echo _ >>temp.jf
  187.  echo _ _ >>temp.jf
  188.  echo t67 >> temp.jf
  189.  echo _ >>temp.jf
  190.  echo _ >>temp.jf
  191.  echo Here's one going up >>temp.jf
  192.  echo 0.8,0.2,90 >>temp.jf
  193.  echo _ >>temp.jf
  194.  echo _ _ >>temp.jf
  195.  echo t67 >> temp.jf
  196.  echo _ >>temp.jf
  197.  echo _ >>temp.jf
  198.  echo _ >>temp.jf
  199.  echo _ >>temp.jf
  200.  echo Press Q to quit EASIPLOT >>temp.jf
  201.  echo 0.2,0.3,0 >>temp.jf
  202.  echo _ >>temp.jf
  203.  echo _ _ >>temp.jf
  204.  
  205. echo .
  206. echo         TEMP.JF has been created on disk. Now when we run EASIPLOT 
  207. echo         you should see extra titles being added automatically by 
  208. echo         this command file.
  209. echo .
  210. echo         Press '3' to see a helix.
  211. echo .        
  212.         pause 
  213.         echo on
  214.         easiplot spring.grp temp.jf
  215.         echo off
  216. cls
  217. goto usedbatch
  218. :skipbatch
  219. echo         There was a problem in creating TEMP.JF (perhaps the disk is 
  220. echo         write-protected). The graph will be displayed anyway.
  221.  
  222. echo .
  223. echo         Press '3' to see a helix.
  224. echo .        
  225.         pause 
  226.         echo on
  227.         easiplot spring.grp
  228.         echo off
  229. cls
  230. :usedbatch
  231. echo .
  232. echo .
  233. echo .
  234. echo .        
  235. echo         OK that's all for now.
  236. echo .        
  237. echo         Please read the file called EASIPLOT.DOC to learn more 
  238. echo         about EASIPLOT. If you like it then please become a 
  239. echo         registered user.
  240. echo .        
  241. echo         ARC Scientific Limited,
  242. echo         257 Woodstock Road,
  243. echo         Oxford OX2 7AE.
  244. echo .
  245. echo .
  246. echo .       
  247. goto end
  248.  
  249. :nofiles
  250. echo         The file HDA.GRP is not present in the working directory. You
  251. echo         should make sure that you are logged on to the correct drive and 
  252. echo         directory. If you have EASIPLOT on a 5" floppy disk you should
  253. echo         enter:
  254. echo .       
  255. echo         A:
  256. echo         PLOTDEMO
  257. echo .       
  258. echo         If you have a 3" disk then all the EASIPLOT files should be in a 
  259. echo         subdirectory called EPDISK and you should enter:
  260. echo .       
  261. echo         A:
  262. echo         CHDIR \EPDISK
  263. echo         PLOTDEMO
  264.  
  265. :end
  266.  
  267.