Skip to content
Prev 4863 / 63421 Next

dev.copy2eps: position of figure on page

The definition for dev.copy2eps contains the following line:

    oc$paper <- "special"

The result of this is that the output will be placed in the left
bottom corner of the page. Even though dev.copy2eps is meant for
creating files that are to be included into other documents, you
might want to print the figure directly, just to see how it will
look on paper. (Of course, this will only work if the figure 
is not larger than the papersize.) When the figure is in the
left bottom corner, this is a bit awkward, because marks too
close to the edge will get lost.

I suggest to put the figure at the centre of the default paper
size (or perhaps the papersize as set as an argument by the
user). It won't matter for EPS-inclusion were on the paper
the figure is, as long as the boundingbox is set correctly.
I redefined dev.copy2eps in my ~/.Rprofile with the above line
replaced by:

    oc$paper <- "default"