next up previous index
Next: Graphics and Splus - Up: Projects Previous: Homework - Lab. 3   Index

Graphics and Splus Lab. 1

  1. Logging into a workstation at the theory Center
    To log into the silicon workstation in front of you, type in your tc account userid and passwd.

    xhost +

    or type in an xterm request for the splogin.tc.cornell.edu machine.

    xterm -e telnet tc.splogin -display treename:0.0

  2. Start a Splus session by: Splus at the tc unix prompt.
  3. Online help in Splus:
    >options(gui='motif')
    >help.start()
    
  4. Using graphical displays under Splus
    Remember you must open a device, Splus does not do this automatically for you.
    >motif()        %starts a motif screen
    
  5. Attach MY data sets and programs to yours:
    >attach('/afs/theory.cornell.edu/user/user2/sholmes/public/.Data')
    
  6. After you have done this you can try using some of the data sets and programs as suggested in the next page.
  7. To quit Splus you must type :
    q() at the prompt.
  8. Matlab is more straightforward, just type:
    matlab at the unix prompt, the window should come up automatically.

Some simple graphics:

motif()
help.start(gui=''motif'')
x<-rnorm(50)
y<-rnorm(50)
h<-chull(x,y)
plot(x,y)
polygon(x[h],y[h],dens=15,angle=30)
objects()
rm(x,y,h)
x<-rnorm(500)
y<-rnorm(500)
hist(c(x,y+2),25)
contour(hist2d(x,y,,,8,8))
persp(hist2d(x,y,,,8,8))
image(hist2d(x,y,,,8,8))

Looking at multivariate data graphically:

faces(t(cereal.attitude), labels = dimnames(cereal.attitude)[[2]],ncol = 3)
brush(randu)
spin(diabm)
xgobi(diabm)

attach('/afs/theory.cornell.edu/user/user2/sholmes/public/.Data')
vinm
pairs(vinm[,1:6])
brush(vinm)
res.acp.vin_acp.us(vinm,q.choix=2)
caplot.us(res.acp.vin)
sleep2
res.sleep_acp.us(mamm1,q.choix=2)
caplot.us(res.sleep)
res.crab_acp.us(crab)
caplot.us(res.crab)

Some contingency table type data:

pairs(diabm)
help(cereal)
faces(t(cereal.attitude), labels = dimnames(cereal.attitude)[[2]],ncol = 3)
res.cer1_ca.us(cereal.attitude)
caplot.us(res.cer1)
eyes
res.eye1_ca.us(eyes)
caplot(eyes)
fumeurs

next up previous index
Next: Graphics and Splus - Up: Projects Previous: Homework - Lab. 3   Index
Susan Holmes 2002-01-12