Appendix B: Hints and Shortcuts


Getting Started
---------------
At the UNIX prompt type
% add st370_info
% S

This loads you into Splus.

Now type

 attach.slab()          brings in S-Lab
 setup.slab()           brings up motif graphics window.

Basics
------
setup.slab()       gets graphics window
q()                quit S
ls()               list your personal files
ls.class()         list files in S-Lab
names(x)           list names: names(x) "V1" "V2" means x$V1 x$V2
rm(x)              removes x from directory
help(plot)         help files for plot (or sub. any function name)
ex(plot)           gives examples of plot

If you feel like you are typing too much, always put
datasets with long names into a short name like z. For example,

toomanylets -> z

plot(z$x,z$y)      instead of
plot(toomanylets$x,toomanylets$y)

When you want to execute a bunch of statements, use the source method
  1) open Crisp window
  2) save file named sn
  3) source("sn") in S   runs commands in file sn within S.
                         Esp. useful for plots.