Skip to content

multiple graphs in the same ps file ?

3 messages · Florence Combes, Marc Schwartz

#
On Fri, 2005-10-28 at 14:48 +0200, Florence Combes wrote:
As per ?postscript the 'append' argument is _disregarded_. Please review
the help page more carefully.

If you want more than one plot per PS file, do not use dev.off() between
plots:

  postscript(file="test_graph.eps", onefile = TRUE)
  plot(1:5)
  barplot(1:5)
  dev.off()

HTH,

Marc Schwartz
#
On Fri, 2005-10-28 at 08:01 -0500, Marc Schwartz wrote:
One more clarification which I forgot to mention here.

If you want an EPS file (encapsulated postscript) for inclusion in
another document (ie. LaTeX or importing into another application), you
cannot have more than one page in the PS file and must use a postscript
call the looks something like this:

  postscript(file="test_graph.eps", onefile = FALSE, horizontal = FALSE,
             paper = "special", ...)

See the Details section of ?postscript for more information. The three
key arguments are 'onefile', 'horizontal' and 'paper'.

HTH,

Marc Schwartz