Marta You have to install ghostscript and update your R to the latest version. Here is a test function I used when trying this out a while ago. You could plot different parts of your figure using a similar approach. The bitmap option of my function dropped colors from the lattice panels. However, plotting on an X11 device and then using dev2bitmap reproduced the figure in color at 1200 dpi. With lzw compression the file was of manageable size.
Einar `newtest` <- function(tiff=F, bitmap=F) { ### requires states ### states <- data.frame(state.x77, state.name = dimnames(state.x77)[[1]], state.region = state.region) if(bitmap) bitmap("bitmaptest.tiff", width=17.15, height=17.15, units="cm", res=1200, pointsize=10, type="tiff24nc",bg="white") if(tiff) tiff(file="tifftest.tiff",width=17.15,height=17.15,units="cm", res=1200, pointsize=10, compression = "lzw") ### tiff(file="tifftest.tiff",width=17.15,height=17.15,units="cm", res=72, pointsize=10, compression = "lzw") foo <- xyplot(Murder ~ Population | state.region, data = states, groups = state.name, panel = function(x, y, subscripts, groups) ltext(x = x, y = y, label = groups[subscripts], cex=0.5, fontfamily = "HersheySans")) plot(foo,position=c(0,0,0.33,1)) plot(foo,position=c(0.33,0,0.66,1), newpage=FALSE) plot(foo,position=c(0.66,0,0.99,1), newpage=FALSE) if(bitmap) dev.off() if(tiff) dev.off() } 2009/5/8 Uwe Ligges <lig...@statistik.tu-dortmund.de> > > > Marta M. Rufino wrote: > >> Dear colleagues, >> >> Thank you for the reply. >> >> Einer: >> I tried to so, but I had an error: >> "Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) : >> gswin32c.exe not found" >> I think would need "|ghostscript|" (in the help file: >> >> "You will need |ghostscript|: the full path to the executable can be set >> by the environment variable R_GSCMD. (If this is unset the setting of GSC is >> used, otherwise command |"gswin32c.exe"|, which will work if it is in your >> PATH.)" >> > > So why have you not tried to install it as explained in that help page? > > > Uwe: >> I did so (the figures I sent were like these). The problem is that they >> want the A and B fig. together mounted, and both of them are so complex (to >> start with, one is lattice and the other is multi-panel grid plot) that I >> cannot mount it in R. I don't know how to do it with postcript >> > > See ?par and its argument mfrow. > > > (mount two figures in the same page, besides I only have acrobat), >> > > so I > >> was using GIMP with Tiff... but, there is the resolution problem :-( >> > > > For my book, a publisher asked me to generate a better resolution for my > bitmaps which in fact is a screenshot with a given fixed resolution from > screen. Hence I used a graphics software and just increased resolution in > terms of file size, not real resolution, since that could not be improved. > This did not make sense at all, but they were happy. > > > >> This is not nice at all... As the journals are becoming more and more >> noisy about this aspects, it would be excelent to sort this out in R, in an >> easy way...(developers? :-)) >> > > > Well, in any case you should consider to use the proper devices directly > rather than copy between devices. > > For the tiff() case: tiff has been introduced very recently and I doubt you > are really going to have a tiff picture consisting of roughly 10e^7 points > i.e. 30 Mb. It's already difficult to submit such a file to the publisher. > > Uwe > > > > Thank you, >> All the best, >> Marta >> >> >> >> -- ----------------------------------------------------- Einar Arnason, Professor einar...@hi.is Institute of Biology University of Iceland Askja # 346 office 354-525-4613 Sturlugata 7 lab 354-525-4606 101 Reykjavik fax 354-525-4069 Iceland ----------------------------------------------------- [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.