Work-around to bug in graphsheet() and win.printer() with clipboard?

Steven Paul Millard (probstat@nwrain.com)
Wed, 28 Jan 1998 23:37:05 -0800


Hello,

There is a bug in S-PLUS 4.0 with win.printer() and graphsheet() that I
discovered in Release 2 and reported. Unfortunately, it did not get
fixed in Release 3. Does anyone know of an easy work-around? Thanks
much!

-----------------------------------------------------------------

Under S-PLUS 3.3, I can type the following commands

> win.printer(width = 4, height = 3, format = "metafile",
+ file = "clipboard")
> par(cex = 0.5, mex = 0.5)
> plot(1:10)
> dev.off()

then paste a Windows metafile into MS Word from the clipboard. The
resulting picture is in fact 4" wide and 3" high.

If I repeat these commands under S-PLUS 4.0 release 3, the pasted
object is only 1" wide and 1.33" high.

If I use the graphsheet() function with the following commands I get
the same result.

> graphsheet(width = 4, height = 3, format = "clipboard")
> par(cex = 0.5, mex = 0.5)
> plot(1:10)
> dev.off()

Sincerely,

--Steve M.

_____________
| *** | Steven P. Millard, Ph.D.
| * |
| * * * | P robability, TEL: 206-528-4877
| * * * | S tatistics & FAX: 206-528-4802
| * | I nformation E-mail: SMillard@ProbStatInfo.com
| * | Web: www.ProbStatInfo.com
| *** | 7723 44th Avenue NE
|___________| Seattle, WA 98115-5117 USA