|
CAPTURE HTMLName:
Note that most commands simply use a <PRE> ... <PRE> syntax (that is, an "asis" format). However, the following commands generate the output using HTML syntax (primarily using the HTML tables or list capabilities):
CROSS TABULATE SUMMARY
CONFIDENCE LIMITS
FIT
CONSENSUS MEAN (and CONSENSUS MEAN PLOT)
PROPORTION CONFIDENCE LIMIT
RELIABILITY TREND TEST
WILK-SHAPIRO GOODNESS OF FIT
<DIST> MAXIMUM LIKELIHOOD In addition, WRITE HTML can be used to generate 1-way tables in HTML format. This is described in more detail in a Note below. The above list corresponds to the 1/2009 version of Dataplot. The ultimate goal is to have most of the commands in the Analysis category generate HTML formatted output. It is expected that subsequent Dataplot releases will contain additional commands that have HTML specific output. The CAPTURE HTML option can be used in conjunction with the WEB command. For example,
READ RIPKEN.DAT Y X1 X2 ECHO ON CAPTURE HTML C:\TABLE.HTM TABULATE MEAN Y X1 CROSS TABULATE MEAN Y X1 X2 END OF CAPTURE WEB file://C:\TABLE.HTM In addition, if DEVICE 2 is set to PNG, JPEG, SVG, or Postscript, Dataplot will incorporate the graphics into the web page using the IMG tag (the SVG device uses the EMBED tag). This is demonstrated in the sample program below. Note that for Postscript, Dataplot uses the Ghostscript command to convert the output to JPEG. A couple of points to note on this:
The SET POSTSCRIPT CONVERT command can be used to automatically convert the Postscript output to one of several formats (JPEG, PDF, TIFF, PBM, PGM, PPM, PNM). If the output is set to PDF (Portable Document Format), the CAPTURE HTML command will incorporate the PDF (rather than the Postscript) file into the web page. For PDF files, Dataplot builds a link to the PDF file. The advantage of using PDF files is that they are typically of higher quality than the corresponding JPEG files. The disadvantage is that you have to link to the file rather than having it directly in the page.
where <file name> is the name of a file where alphanumeric output is written. If the file name does not contain a period, place a period (no spaces) at the end of the file name.
... DATAPLOT COMMANDS .... END OF CAPTURE
PRINT <ON/OFF> The PRINT command controls most of the output generated by the Analysis category commands. Output from most other commands is controlled by the FEEDBACK command. The purpose of this distinction is to allow you to generate the output from commands such as FIT while suppressing most of the other output. When generating HTML format output, a common choice is
FEEDBACK OFF
where <var-list> is a list of variables to print in an HTML table format. Note that this command is typically entered after a CAPTURE HTML command. The following commands can be used to control the appearance of the HTML table:
The SET WRITE DECIMALS command can be used to specify how many digits after the decimal point will be printed (this will apply to all of the columns, currently there is no way to specify a different value for different columns). By default, the column headers will simply be the variable names. However, if you have entered a VARIABLE LABEL command for a given variable, the label specified for that variable will be used instead of the variable name.
SET HTML FOOTER FILE <file-name> Enter HELP HTML HEADER FILE or HELP HTML FOOTER FILE for details.
If you want to modify the appearance of the HTML output, our recommendation is to either edit the file using an ASCII editor or use one of the HTML editors (we have no particular recommendations on the advantages/disadvantages of the various editors).
skip 25
read gear.dat y x
.
line blank solid
character x blank
feedback off
.
capture html tabulate.htm
.
summary y
tabulate mean y x
tabulate sd y x
.
set ipl1na meanplot.jpg
device 2 gd jpeg
title mean plot
y1label diameter
x1label batch
mean plot y x
device 2 close
end of capture
.
. file name below needs to be modified
web file:///home/heckert/dataplot/solaris/tabulate.htm
Date created: 1/31/2004 |