Download Unix User Guide

Transcript
CHAPTER 9 CUSTOMIZING YOUR S-PLUS SESSION
xlsfonts to see a complete list of the fonts available on your screen.
As an example, the following resources tells the motif graphics
device to use the vg family of fonts ranging in point size from 13 to
40:
sgraphMotif*fonts : vg-13 vg-20 vg-25 vg-31 vg-40
Note
If you select names that are too long to fit on one line, use multiple lines, and make sure that each line but
the last ends with a backslash (\). Since these fonts are intended to list available sizes of the same
font, the actual font used is controlled by the current value of par()$cex and the size of the fonts
relative to the defaultFont described below.
• sgraphMotif*defaultFont tells the motif graphics device which
font in the *font resource list to use as the default font, when cex=1.
Note
The fonts are numbered from 0, so that the following resource tells the motif graphics devices to use the
third font in the list given by sgraphMotif*fonts: sgraphMotif*defaultFont : 2
• sgraphMotif*canvas.width and sgraphMotif*canvas.height
control the starting size of the drawing area of the graphics windows.
The following resources set the size of the plotting area for the motif
graphics device to 800 by 632 pixels.
sgraphMotif*canvas.width : 800
sgraphMotif*canvas.height : 632
Note
When S-PLUS creates graphics to display in the graphics windows, it uses the initial values of
*canvas.width and *canvas.height resources as the size of the drawing area. If you create a graphics device
with a small drawing area and later resize the graphics window to a larger size, the resolution of the
graphics image is reduced, so that your plots may look ‘‘blocky.’’
To set color resources for motif devices interactively, we recommend that
you use the menus provided in the graphics windows. You can also use the
326