The graphical facilities are an important and extremely versatile component
of the S-PLUS environment. Best results are obtained when S-PLUS is used
with a high quality graphics system such as X
windows, although
even a simple ASCII terminal can be quite effective for some
purposes.
Before the graphical facilities of S-PLUS may be used, it is necessary to
inform S what type of device is being used by starting a device
driver. In an X
windows environment, the command to do this may be
X11()
(which creates a separate window in which high-quality graphical output will appear,) or for a simpler graphics terminal the command
tek4014()
may be appropriate.
Once a device driver is running S-PLUS plotting commands can be used to construct and display graphical objects. Plotting commands are divided into three basic groups: