[R] problem with multiple figure postscript file

Matthew Norton nortonm at magellan.umontreal.ca
Wed Nov 24 18:07:08 CET 1999


Hello all!

I'm a newcomer to R, so please bear with me.  My problem is the
following:

I'm trying to use R to do some geostatistics stuff (mostly kriging), and
am having trouble printing a multiple figure.  When I create a single
figure (one image/contour command), it works fine.  The instant I try to
create a multiple figure file, I start getting postscript errors.  I'm
using the 0.90 version of R for linux.

Here are the commands I have been using:


     postscript("crocheinterp.ps", family="Times", height=7,
     width=4, horizontal=FALSE, paper="letter")

     par(mfcol=c(2,2))

     par(mfg=c(1,1,2,2))
     par(mai=c(0.5, 0.5, 0.5, 0.5))

     plot(croche.day.epi.grid$xy, type="n", xlim=c(0,100),
     ylim=c(0,200), xlab="", ylab="")

     image(croche.day.epi.grid$x, croche.day.epi.grid$y,
     matrix(croche.day.epi.grid$krige$zhat,
     length(croche.day.epi.grid$x), length(croche.day.epi.grid$y)),
     add=T, col=grays)


     contour(croche.day.epi.grid$x, croche.day.epi.grid$y,
     matrix(croche.day.epi.grid$krige$zhat,
     length(croche.day.epi.grid$x), length(croche.day.epi.grid$y)),
     add=T)


     par(mfg=c(2,1,2,2))
     par(mai=c(0.5, 0.5, 0.5, 0.5))


     etc., etc., etc.

When I try to open the crocheinterp.ps file, ghostview gives me the
following error:


     Error: /invalidfont in findfont
     Operand stack:
        Times-Roman   Font   Times-Roman   13724   Times-Roman
     --nostringval--   Times-Roman   Courier
     Execution stack:
        %interp_exit   .runexec2   --nostringval--
     --nostringval--   --nostringval--   2   %stopped_push
     --nostringval--   2   3   %oparray_pop   --nostringval--
     --nostringval--   false   1   %stopped_push   1   3
     %oparray_pop   .runexec2   --nostringval--   --nostringval--
     --nostringval--   2   %stopped_push   --nostringval--   1
     3   %oparray_pop   2   3   %oparray_pop   --nostringval--
     --nostringval--   false   1   %stopped_push
     --nostringval--   5   4   %oparray_pop   --nostringval--
     --nostringval--   %loop_continue   --nostringval--
     --nostringval--   --nostringval--   5   5   %oparray_pop
     Dictionary stack:
        --dict:770/809--   --dict:0/20--   --dict:66/200--
     --dict:16/23--   --dict:770/809--
     Current allocation mode is local
     Last OS error: 2
     Current file position is 1112

Now, I know next to nothing about postscript errors, so I can't quite
figure this out.  Does anyone have any ideas?

Thanks in advance

--
Matthew Norton                          |nortonm at magellan.umontreal.ca
Département des Sciences Biologiques    |(514) 343-6111 x1233
Université de Montréal                  |
C.P. 6128 Succursale centre-ville       |
Montréal, Qc H3C 3J7                    |



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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