Hello there,
I am playing with the trellis postcript device for several hours now and I
can't get it to work the way I wish it would.
I have a function I have been using for several years without problems.
When the required device is postcript the function was starting the
postcript device with:
PsColors <- ps.colors.rgb[c("black", "red", "DarkGreen", "blue",
"magenta1", "DarkOrange1",
"MidnightBlue","firebrick1", "yellow",
"maroon", "cornsilk", "BlueViolet"), ]
ps.options(colors = PsColors, background = ps.colors.rgb[c("gray85"),],
tempfile = paste(LaTeX.dir, projet, "-", i, "##.EPS", sep = ""),
setfont = ps.setfont.latin1, font = 1)
postscript(onefile = F, print.it = F, append = F, horizontal = F)
then the function is plotting four graphs, three dot plots and a histogram,
per input variable. Works fine. Then, after complaints from collegues, I
tried to increase the dot size of the dot plots as following:
dot.symbol <- trellis.par.get("dot.symbol")
dot.symbol$cex <- dot.size # an input argument to the function,
1.25 by default
trellis.par.set("dot.symbol", dot.symbol)
I get an error from "trellis.par.set":
Problem in trellis.par.set: No data to interpret as logical value: if(p[i]
!= q[i]) stop("inconsistent component names")
Use traceback() to see the call stack
Warning in par(old.par): Graphics error: Figure specified in inches too
large (in zzfigz)
Warning in par(old.par): Graphics error: Plot specified in inches too large
(in zzpltz)
Graphics error: Plot specified in inches too large (in zzpltz)
Error during wrapup: needed atomic data, got an object of class "function"
Seeing this and sort of following the sparse documentation of the help page
for trellis.device I tried to directly open the trellis.device for
PostScript output as follows:
trellis.device(postscript, color = PsColors,
background = ps.colors.rgb[c("gray85"),],
tempfile = paste(LaTeX.dir, projet, "-", i, "##.EPS", sep = ""),
setfont = ps.setfont.latin1, font = 1,
onefile = F, print.it = F, append = F, horizontal = F)
This time no problem adjusting the size of the dots as I wish BUT
impossible to get the colors I want. All other arguments seem to be passed
correctly to the postcript device but the "color" and "background"
arguments? Any idea of what is happening?
Thanks for any insights,
Gérald Jean
Conseiller senior en statistiques, Actuariat
télephone : (418) 835-4900 poste (7639)
télecopieur : (418) 835-6657
courrier électronique: gerald.jean@dgag.ca
"In God we trust, all others must bring data" W. Edwards Deming
Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés
uniquement aux personnes identifiées et peuvent contenir des informations
privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez
reçu ce message par erreur, veuillez le détruire.
This communication (and/or the attachments) is intended for named
recipients only and may contain privileged or confidential information
which is not to be disclosed. If you received this communication by mistake
please destroy all copies.
|