R1.8.0, Win2k:

When I run the code

lset( list( background = list(col = "white")))
xyplot
( 
        y ~ TIME , data = foo.frame,
        scales = list(alternating = FALSE),
        ylim = c(.75,y.max),
        panel = function(x, y, panel.number, ... )
        {
        panel.superpose(x = foo.frame$TIME[foo.frame$group == 1],
                y = foo.frame$y[foo.frame$group == 1],
                subscripts = TRUE, 
                groups = foo.frame$subject.id[foo.frame$group == 1],
                type = 'b', 
                col = "black", 
                lwd = 4, 
                cex = 1.5)
                        
        panel.superpose(x = foo.frame$TIME[foo.frame$group == 0],
                y = foo.frame$y[foo.frame$group == 0],
                subscripts = TRUE, 
                groups = foo.frame$subject.id[foo.frame$group == 0],
                type = 'l', 
                col = gray(.6))
                        
        panel.loess(x = foo.frame$TIME, 
                y = foo.frame$y, col = gray(.2), 
                lwd = 3, 
                lty = 5, 
                span = 1/3)
        }
)

I get the desired graph on the screen.  Basically,
I am trying to display the time course of a set of test
subjects, where each of two subsets is displayed in a
different color, and a loess smoother is added to the plot
for reference.

When I add 

trellis.device(postscript, 
        file = "//.../foo_status.ps", 
        color = TRUE)

to the beginning of this little script, upon trying to open the
created file with Ghostview/Ghostscript, I get an error dialog 
box containing the error message in the attached text file and 
nothing is displayed.

If I change to

trellis.device(win.metafile, 
        file = "//.../foo_status.wmf", 
        width = 8.5, height = 6.25)

I am able to view the created file, but there are unwanted
vertical lines drawn at max(foo.frame$TIME).  Moreover, MSWord
has a hard time rendering this graph in a stable way, as it
is constantly redrawing it and freezing my screen.  The file
is only 35K, so this should not happen.  I tried the same
scripting options in R1.7.1 with the same results, which leads
me to believe that my xyplot(..) code could be in error.
OTOH, this is a fairly simple adaptation of some earlier
working code and the within-RGui graph appears to be fine and
doesn't have the unwanted vertical lines.  When I right-click
on this graph and try to paste it directly into MSWord, I
get the same "screen freeze" issues, and the vertical lines
appear in the window.

Any help would be greatly appreciated.


-david paul

GSview 4.2 2002-02-07
Unknown in Comments section at line 2:
  %%DocumentNeededResources: font Helvetica
Unknown in Comments section at line 3:
  %%+ font Helvetica-Bold
Unknown in Comments section at line 4:
  %%+ font Helvetica-Oblique
Unknown in Comments section at line 5:
  %%+ font Helvetica-BoldOblique
Unknown in Comments section at line 6:
  %%+ font Symbol
Unknown in Prolog section at line 84:
  %%IncludeResource: font Helvetica
Unknown in Prolog section at line 92:
  %%IncludeResource: font Helvetica-Bold
Unknown in Prolog section at line 100:
  %%IncludeResource: font Helvetica-Oblique
Unknown in Prolog section at line 108:
  %%IncludeResource: font Helvetica-BoldOblique
Unknown in Prolog section at line 116:
  %%IncludeResource: font Symbol
AFPL Ghostscript 7.04 (2002-01-31)
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying DSC file S:/.../foo_status.ps
Displaying page 1
Loading NimbusSanL-Regu font from C:\Program Files\Ghostscript\fonts/n019003l.pfb... 
1958664 594687 1642624 355421 0 done.
Loading NimbusSanL-Bold font from C:\Program Files\Ghostscript\fonts/n019004l.pfb... 
1998856 639119 1662720 362099 0 done.
Loading NimbusSanL-ReguItal font from C:\Program 
Files\Ghostscript\fonts/n019023l.pfb... 2059144 689144 1662720 365345 0 done.
Loading NimbusSanL-BoldItal font from C:\Program 
Files\Ghostscript\fonts/n019024l.pfb... 2099336 736361 1662720 368613 0 done.
Loading StandardSymL font from C:\Program Files\Ghostscript\fonts/s050000l.pfb... 
2139528 776915 1662720 371878 0 done.
Error: /undefined in 1.#R
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2  
 %stopped_push   --nostringval--   --nostringval--   false   1   %stopped_push   1   3 
  %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--  
 --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--
Dictionary stack:
   --dict:1015/1123(ro)(G)--   --dict:0/20(G)--   --dict:97/200(L)--
Current allocation mode is local

--- Begin offending input ---
 0 t
718.94 315.53 (o) .5 0 0 t
np
103.76 217.37 m
123.04 -39.58 l
123.03 -53.60 l
123.04 246.70 l
123.03 -24.43 l
123.04 -27.00 l
o
103.76 127.71 (o) .5 0 0 t
226.80 243.98 (o) .5 0 0 t
349.83 291.90 (o) .5 0 0 t
472.87 469.76 (o) .5 0 0 t
595.90 468.81 (o) .5 0 0 t
718.94 441.21 (o) .5 0 0 t
np
103.76 131.64 m
123.04 116.27 l
123.03 47.92 l
123.04 177.86 l
123.03 -0.95 l
123.04 -27.60 l
o
np
1.#R 1.#R m
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
o
np
1.#R 1.#R m
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
o
np
1.#R 1.#R m
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
o
np
1.#R 1.#R m
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
o
np
1.#R 1.#R m
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
o
np
1.#R 1.#R m
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
o
np
1.#R 1.#R m
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
1.#R 1.#R l
o
np
1.#R 1.
--- End offending input ---
file offset = 6801
gsapi_run_string_continue returns -101
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to