next up previous
Next: Reading SAS datasets Up: Introduction to Splus at Previous: Exiting Splus

Color graphics

It is possible to display color graphics on the color display units in the computer lab as well as to print these graphs on the printer in the computer lab (hp1200c). Detailed instructions are available in the file /usr/biostatistics/doc/Splus/Splus.color2.

First, run the motif() driver, and set your color preferences appropriately in the Options/Color Scheme menu. Also change your printer preference to read: lpr -Php1200c -r -h. Once this is done, execute the command:
ps.options.send(image.colors=xgetrgb("images"), colors=xgetrgb("lines"),
background=xgetrgb("background"))

Then display an image or plot:
plot(corn.rain,corn.yield,type="n")
points(corn.rain,corn.yield,col=2)
title(main="A colorful but silly plot",col=3)



Elizabeth Brown
1998-11-09