win.graph()
, and includes a printer driver win.printer()
.
S-PLUS 4.0 for Windows introduces a new Windows graphics driver
graphsheet()
which generates point-and-click editable graphics.
Execute the expression
help(Devices)
S-PLUS 4.0 for Windows provides a wealth of menu and dialog based functionality, including completely extensible and customizable menus and dialogs.
S-PLUS 3.4 for UNIX does not have built-in statistics menus, but does include tools for building menus and dialogs.
Most software to support dynamic graphics is tuned to a particular
output device. Since S provides a device-independent
graphical system, there are no dynamic graphics applications
that are part of S. However, S has been used effectively as a
platform from which device-dependent graphics code can be executed.
In this case, S provides for data management, computations, etc., and
hardware-specific routines are called to produce the dynamic displays.
For users on Silicon Graphics machines, S provides library(brush
) which
implements brushing and point cloud rotation using SGI's gl library.
S-PLUS does have dynamic graphics using the X and sunview window
systems; see its brush()
and spin()
functions.
S-PLUS 4.0 for Windows makes it easy to export graphics to a wide variety of formats through the File:Export Graph menu item.
For S-PLUS 3.4 for UNIX, a summary of comments by Bill Venables, Dave Smith and Brian Ripley follows.
The alternatives are either to produce PostScript directly from
S/S-PLUS, or to go via a graphical representation such as that of fig
(a public domain drawing package).
postscript()
driver, as in
postscript(file="1.eps", height=4, width=5, horiz=T, pointsize=8)If you use
postscript()
directly, remember to call
graphics.off()
(or quit S) after finishing the plot calls. S-PLUS
users can call postscript()
via dev.print()
.
pscript()
driver, which can
be used either directly (with "onefile=F"
and calling
graphics.off()
after use) or via
dev.print(pscript, onefile=F, print=F, ...)
rmv filename
and click on print. [Here rmv
is a shell script with contents
mv $2 $1
.] If this is available, this is the easiest way.
fig()
driver
obtainable from statlib
by send fig from S
. (See section What is the statlib
server? How can I access it?,
for information on statlib
).
To include PostScript in TeX/LaTeX documents you need to consult the
details of your dvi to ps program. Two macro packages, epsf
and
psfig
, make the job much easier. Both are distributed with
Tomas Rokicki's dvips, obtainable from labrea.stanford.edu
in
~ftp/pub
.
In 3/93 the latest version was 5.514. Other versions of epsf
and
psfig
are available for other dvi to ps programs, from a wide
variety of archives. A wide range of PostScript editors
are available, and cognescenti can edit PostScript directly.
Fig-format plots can be edited with xfig
and converted to
Encapsulated PostScript (and a number of other formats) with
fig2dev
. (Both are now version 2.1). They are part of the X11R5
distribution, but can be obtained separately by anonymous ftp from
export.lcs.mit.edu
in the directory /pub/R5untarred/contrib/clients
.
Alan M. Zaslavsky has placed an archive of contributed collections on
statlib
(See section What is the statlib
server? How can I access it?, for information on statlib
) named
postscriptfonts
. A short description of the files is given
below.
Functions to display postscript fonts and, using the postscript()
driver, to add text to a plot (or the margin of a plot) that contains
mixed fonts (including Greek), mixed character sizes, local and
motions (e.g., sub and superscripts).
fontdemo
'
ps.show.fonts
'
mixed.text
'
mixed.mtext
'
mixed.text.vector
'
mixed.mtext.vector
'
ps.preamble.ISO.LATIN
'
postscript(preamble=ps.preamble.ISO.LATIN)
).
Go to the first, previous, next, last section, table of contents.