Hi, All; When I generate a "special" paper postscript image larger than "a4" or "letter" using R, I can only see one-page portion of all image, of course. What will be the simple solution for this? Is there any way I can set the bounding box information on the image? Or any other suggestions? Thanks in advance; Tae-Hoon Chung -------------------------------------------------- Tae-Hoon Chung Post-Doctoral Researcher Translational Genomics Research Institute (TGen) 445 N. 5th Street (Suite 530) Phoenix, AZ 85004 1-602-343-8724 (Direct) 1-480-323-9820 (Mobile) 1-602-343-8840 (Fax)
On Mon, 2005-01-31 at 12:42 -0700, Tae-Hoon Chung wrote:> Hi, All; > > When I generate a "special" paper postscript image larger than "a4" or > "letter" using R, I can only see one-page portion of all image, of course. > What will be the simple solution for this? Is there any way I can set the > bounding box information on the image? Or any other suggestions?Are you trying to generate an EPS file or just purely PS? If the former, you need to specify: horizontal = FALSE, onefile = FALSE, paper = "special" as it indicates in the "Details" section of ?postscript In both cases, you also need to specify the 'height' and 'width' arguments, when using the "special" paper type. For example, this works for me: postscript(file = "MyFile.ps", height = 10, width = 15, paper = "special", onefile = FALSE, horizontal = FALSE) barplot(1:10) dev.off() I may be missing what you are trying to do, so if this is not helpful, please post back a reproducible example of what you are trying to do. HTH, Marc Schwartz
On Tuesday 01 February 2005 06:42 am, Tae-Hoon Chung wrote:> Hi, All; > > When I generate a "special" paper postscript image larger than "a4" or > "letter" using R, I can only see one-page portion of all image, of course. > What will be the simple solution for this? Is there any way I can set the > bounding box information on the image? Or any other suggestions? >If you mean "How can I view the entire image in Ghostview?", change the viewing window to "BoundingBox" and make sure that the "BoundingBox:" parameters, usually right near the top of the Postscript file, cover the entire area that you want to view. Jim
> When I generate a "special" paper postscript image larger than > "a4" or "letter" using R, I can only see one-page portion of all > image, of course. > What will be the simple solution for this? Is there any way I > can set the bounding box information on the image? Or any other > suggestions?I often use 'special' paper for graphs that are smaller than A4. I believe that the postscript files thus created do have the correct bounding box. If you import such a graph it shows the right boundaries. Alternatively if I look at such a graph in ghostview I can set the boundaries myself in the Menu Media->user defined according to the bounding boxes in the postscript file. Thus, I am not sure what your problem is ... Regards, Lorenz - Lorenz Gygax, Dr. sc. nat. Centre for proper housing of ruminants and pigs Swiss Federal Veterinary Office agroscope FAT T?nikon, CH-8356 Ettenhausen / Switzerland
Apparently Analagous Threads
- Segmentation fault while using Mclust function of mclust library in R-2.0.1
- e1071 question: what's the definition of performance in t une.* functions?
- Way to make R idle for some time and try something again later
- tcltk question
- set class attribute method question