R-beta: Legends and Postscript devices

Jim Lemon bitwrit at ozemail.com.au
Thu May 14 15:11:16 CEST 1998


1) I generally preview the graphics on the x11() display, and then print
to a file using the 'postscript' output device.  Using the following
procedure has never failed for me.

+ family="Times")
>system("lpr Rplots.ps")

(In fact, I usually encapsulate the whole affair in a specially written
plotting routine which allows me to choose whether or not to produce
hard copy with a keystroke.)  You can, of course, call the output file
anything you please.  Trying to use '/dev/lp1' (or whatever your
Postscript device file is) is usually not a good idea.  When I have
messed up a legend on hard copy, it has usually been because of improper
x/y placement.

2) The problem brought up by F. Moro (9/5/98) may be relevant to your
second request.  If you just want an axis label, the following will
produce one.

> par(mar=c(5,5,5,5))
> plot(...)
> axis(...)
> mtext("y2",side=4,line=3)


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list