Graphics Device for Hewlett-Packard LaserJet Printers

DESCRIPTION:
Allows graphics to be produced on a Hewlett-Packard LaserJet printer.

USAGE:
hplj(width=<<see below>>, height=<<see below>>, horizo=<<see below>>,
      onefile=T, print=T, paper="letter", dpi=<<see below>>,
      tempfile="lj.out.####.lj", ...)

OPTIONAL ARGUMENTS:
width:
width of the plotting region in inches. width refers to the x axis dimension. The defaults for width and height are taken from paper.
height:
height of the plotting region in inches. height refers to the y axis dimension.
horizo:
if TRUE, the x axis lies along the long side of the paper ("landscape" mode); if FALSE, the long side is vertical ("portrait" mode). The default is specified in the environment variable S_PRINT_ORIENTATION (as either landscape or portrait).
onefile:
if TRUE, each plot is appended to a file named LaserJet.out. If FALSE, each plot will be written to a temporary file (lj.out.####.lj) which will be passed as the argument to the command specified by the environment variable S_LASERJET_PRINT_COMMAND.
print:
if FALSE, hplj will not try to send temporary files (see above) to the printer.
paper:
character string indicating the size of the paper loaded into the LaserJet printer. The values accepted for paper are "letter" (the default), "legal" and "a4".
dpi:
the line resolution for LaserJet output files, in dots per inch. Acceptable values are 75, 100, 150, and 300. The default is specified by the environment variable S_LASERJET_DPI.
tempfile:
character string to be used as a template for naming a file where the LaserJet output is to go. The first sequence of "#" characters will be replaced with a number in the generated filenames. The default value is "lj.out.####.lj".
...:
other options are passed through to the printer drivers used by printgraph. Refer to ps.options for the list of valid commands for the PostScript driver. Each PostScript option should be prefixed with ps. in order to be passed through and recognized as a PostScript driver option. Note that the LaserJet driver has not yet been updated to use this scheme.

SIDE EFFECTS:
initializes a graphics device which produces a file of LaserJet graphics commands and text. It currently supports Hewlett-Packard's LaserJet+, 500+ and series II printers.

DETAILS:
For more information see the Printing Your Graphics and the Customizing Your S-PLUS Session chapters in the S-PLUS User's Manual.

WARNING:
Do not allow two different graphics devices to write to the same file name at the same time. The file will become corrupted if this happens.

SEE ALSO:
printgraph , Devices , dev.cur , getenv .

EXAMPLES:
hplj(print=F)
tsplot(hstart, log="y")
q()     # exit from S-PLUS

lpr -Php -r LaserJet.out