[Rd] lattice: postscript() false margins (PR#949)
Mr deepayan sarkar
deepayansarkar@yahoo.com
Sun, 27 May 2001 22:33:02 -0700 (PDT)
This is not really a bug. grid is not compatible with
standard R graphics, and just starting a device by
calling postscript() or x11() will not work. You need
to call the grid functions grid.start() and
grid.stop() when you enter and exit grid graphics.
If you're only interested in the lattice stuff, then
the proper way to initiate a postscript (or x11)
device is to call
trellis.device(postscript, file="foo").
You should probably also read the documentation for
trellis.device, as you might not like the current
defaults.
--- p.malewski@tu-bs.de wrote:
> Using lattice the posscript(file="") device gives
> false margins:
>
> zz <- data.frame(
>
> y=rnorm(100),x=rnorm(100),z=round(rnorm(100)),
> g=as.character(rep(1:2,50)))
>
>
> postscript(file="/tmp/tmp.ps")
> xyplot(x~y|g,data=xx)
> dev.off()
>
> whereas dev.print(postscript,file="") works fine
>
> dev.print(postscript,file="/tmp/tmp.ps")
>
> Peter
>
> <<insert bug report here>>
>
>
>
> --please do not edit the information below--
>
> Version:
> platform = i686-pc-linux-gnu
> arch = i686
> os = linux-gnu
> system = i686, linux-gnu
> status = Under development (unstable)
> major = 1
> minor = 3.0
> year = 2001
> month = 05
> day = 25
> language = R
>
> Search Path:
> .GlobalEnv, package:grid, package:lattice,
> package:ctest, Autoloads, package:base
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel 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-devel-request@stat.math.ethz.ch
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._