ps.options (..., reset=F)
The matrix ps.colors.rgb can be subsetted to provide a value for this argument. Also, the function ps.hsb2rgb can be used to convert colors from the HSB model to the RGB model equivalents. See the examples section below.
See the ps.paper.regions documentation for a way to discover the imageable region of your printer.
If ps.options is called with either a list as the single argument, or with one or more arguments in the name=value form, then options specified by the names in the argument(s) are changed or created.
Some printer driving software may have an option to reverse the order of the pages being output to the printer. In that case, the software needs to understand the DSC headers that are present in the PostScript output. Some older software may not properly understand the headers at the default value for the dsc option. Using a ps.options(dsc=2) may resolve such problems. Evidence of this sort of problem may be in a log file for the specific printer in the form of an error message sent back from the printer. The message would probably be complaining about the usage of an undefined command.
# Use these colors for PostScript on the next device startup. ps.options (colors=ps.colors.rgb[c("red", "green", "blue"),], background=ps.colors.rgb[c("gray"),])# Use existing HSB color model specifications ps.options.send (colors=ps.hsb2rgb(my.hsb.ps.colors)) ps.options.send (colors=my.hsb.ps.colors, setcolor=ps.setcolor.hsb)
# Set colors for the image() function as shades of red ps.options (image.colors=cbind(0:127/127, rep(0,128), rep(0,128)), title="Figure 1.1 [image data]")
# Setup for European usage. ps.options (paper="A4", setfont=ps.setfont.latin1)
# Reset to S-PLUS default values. ps.options (reset=T)