[R] Shortcut for dev.copy2eps

Peter Kleiweg kleiweg at let.rug.nl
Wed Dec 20 21:16:32 CET 2000

I want to use a shortcut for copying figures to EPS. I defined
this function in .Rprofile:

    ps <- function(file="Rplot.eps", width=7, height=7, ...) {
        dev.copy2eps(file=file, width=width, height=height, ...)

This doesn't work:

    > data(cars)
    > plot(cars)
    > ps()
    Error in device(...) : Object "width" not found

Can anyone tell me what's going on?

I'm using R version 1.1.0 on Linux.

Peter Kleiweg

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