scaling<-4 xywidth<-480 resolution<-150 png(filename = "c:/r/anschluss/plots/4.png", width = xywidth*scaling, height = xywidth*scaling,pointsize = 12, bg = "white", res = resolution*scaling) ...... barplot(xrow,col = barcolors,cex.axis=scaling, ylab="mean time till attachment in sec",cex.lab=1.2*scaling) I tried to scale the barplot but there is one strange result: scaling=1 http://biostatistic.de/temp/1.png --- the ylab is ok scaling=2 http://biostatistic.de/temp/2.png --- the ylab is not ok scaling=4 http://biostatistic.de/temp/4.png --- the ylab is terrible is there any better solution to scale the resolution and the width/height? with regards Knut
On Thu, 2005-09-01 at 21:51 +0200, Knut Krueger wrote:> scaling<-4 > xywidth<-480 > resolution<-150 > png(filename = "c:/r/anschluss/plots/4.png", width = xywidth*scaling, > height = xywidth*scaling,pointsize = 12, bg = "white", res = > resolution*scaling) > ...... > > barplot(xrow,col = barcolors,cex.axis=scaling, ylab="mean time till attachment in sec",cex.lab=1.2*scaling) > > I tried to scale the barplot but there is one strange result: > scaling=1 > http://biostatistic.de/temp/1.png --- the ylab is ok > > scaling=2 > http://biostatistic.de/temp/2.png --- the ylab is not ok > > scaling=4 > http://biostatistic.de/temp/4.png --- the ylab is terrible > > is there any better solution to scale the resolution and the width/height? > > > with regards > KnutProbably a better first question is, why are you using a bitmapped graphics format if you need the image to be re-scaled? In general, bitmapped graphics do not resize well, though if you have a specific need and know a target image size, you can adjust various parameters to look decent. Are you going to view these images in a web browser, where you are concerned with display size and resolution?>From your e-mail headers it appears you are on Windows. If you need are-sizable graphic, use a vector based format such as wmf/emf, especially if you need the graphics embedded in a Windows application such as Word or Powerpoint. This is the default format under Windows when copying and pasting a graphic between applications. You can then, fairly freely, resize the image in the target application as you may require. If you are going to print the graphic directly or include it in a document for printing (as opposed to just viewing it), then use PDF or Postscript. The latter in EPS format, can be imported into many Windows applications like Word, including the generation of a preview image. However, they don't look good for direct use in presentations (unless you print to a PS file and then convert to PDF for viewing). See ?Devices for more information. With a better idea of how you plan to use the graphic(s), we can offer more specific recommendations on how to proceed. Marc Schwartz
>Probably a better first question is, why are you using a bitmapped >graphics format if you need the image to be re-scaled? >I need a 1000 dpi tif file in a size of appr. 10 to 10 cm for applied animal behaviour science: http://authors.elsevier.com/GuideForAuthors.html?PubID=503301&dc=GFA images to one of the following formats (Note the resolution requirements for line drawings, halftones, and line/halftone combinations given below.): EPS: Vector drawings. Embed the font or save the text as "graphics". TIFF: Colour or greyscale photographs (halftones): always use a minimum of 300 dpi. TIFF: Bitmapped line drawings: use a minimum of 1000 dpi. TIFF: Combinations bitmapped line/half-tone (colour or greyscale): a minimum of 500 dpi is required. DOC, XLS or PPT: If your electronic artwork is created in any of these Microsoft Office applications please supply "as is". I tired the Postscript file but the file is double heigh as width i do not know why. The problem was already discussed in the tread: [R] High resolution plots I have to send the images possibly yesterday and I am looking fo a suitable solution since two months now. I tired gsview with converting to all possible Tiff formats but the images appear not in color and in a strange black and white way Some readers are able to read it (Windows Image view) other not and I do not know which reader the journal will use :-( And the ylab is too small ... http://biostatistic.de/temp/1.tif http://biostatistic.de/temp/2.tif http://biostatistic.de/temp/3.tif http://biostatistic.de/temp/4.tif>In general, >bitmapped graphics do not resize well, though if you have a specific >need and know a target image size, you can adjust various parameters to >look decent. Are you going to view these images in a web browser, where >you are concerned with display size and resolution? > >>From your e-mail headers it appears you are on Windows. If you need a >re-sizable graphic, use a vector based format such as wmf/emf, >especially if you need the graphics embedded in a Windows application >such as Word or Powerpoint. This is the default format under Windows >when copying and pasting a graphic between applications. You can then, >fairly freely, resize the image in the target application as you may >require. > >If you are going to print the graphic directly or include it in a >document for printing (as opposed to just viewing it), then use PDF or >Postscript. >Ok there is a second description for the file format :-( http://authors.elsevier.com/ArtworkInstructions.html?dc=AI2 there are pdf formats welcome but with defined conditions: Maybe anybody could give me a hint to get the files in the recommendet format. I will ask them immediately which whether the pdf is allowed or not, becaus they have two different instruction sites :-( Regards Knut
If you have not already tried it try creating a fig file: xfig("myfile.fig") plot(1:10) dev.off() and then using the fig2dev utility (find it via google) to convert it to a tiff: fig2dev -L tiff myfile.fig > myfile.tiff On 9/2/05, Knut Krueger <admin at biostatistic.de> wrote:> > > > >Probably a better first question is, why are you using a bitmapped > >graphics format if you need the image to be re-scaled? > > > I need a 1000 dpi tif file in a size of appr. 10 to 10 cm for applied > animal behaviour science: > http://authors.elsevier.com/GuideForAuthors.html?PubID=503301&dc=GFA > > images to one of the following formats (Note the resolution requirements > for line drawings, halftones, and > line/halftone combinations given below.): > EPS: Vector drawings. Embed the font or save the text as "graphics". > TIFF: Colour or greyscale photographs (halftones): always use a minimum > of 300 dpi. > TIFF: Bitmapped line drawings: use a minimum of 1000 dpi. > TIFF: Combinations bitmapped line/half-tone (colour or greyscale): a > minimum of 500 dpi is required. > DOC, XLS or PPT: If your electronic artwork is created in any of these > Microsoft Office applications please > supply "as is". > > I tired the Postscript file but the file is double heigh as width i do > not know why. > The problem was already discussed in the tread: [R] High resolution plots > > I have to send the images possibly yesterday and I am looking fo a > suitable solution since two months now. > I tired gsview with converting to all possible Tiff formats but the > images appear not in color and in a strange black and white way > Some readers are able to read it (Windows Image view) other not and I > do not know which reader the journal will use :-( > And the ylab is too small ... > > http://biostatistic.de/temp/1.tif > http://biostatistic.de/temp/2.tif > http://biostatistic.de/temp/3.tif > http://biostatistic.de/temp/4.tif > > > > > > >In general, > >bitmapped graphics do not resize well, though if you have a specific > >need and know a target image size, you can adjust various parameters to > >look decent. Are you going to view these images in a web browser, where > >you are concerned with display size and resolution? > > > >>From your e-mail headers it appears you are on Windows. If you need a > >re-sizable graphic, use a vector based format such as wmf/emf, > >especially if you need the graphics embedded in a Windows application > >such as Word or Powerpoint. This is the default format under Windows > >when copying and pasting a graphic between applications. You can then, > >fairly freely, resize the image in the target application as you may > >require. > > > >If you are going to print the graphic directly or include it in a > >document for printing (as opposed to just viewing it), then use PDF or > >Postscript. > > > > Ok there is a second description for the file format :-( > http://authors.elsevier.com/ArtworkInstructions.html?dc=AI2 > there are pdf formats welcome but with defined conditions: > > Maybe anybody could give me a hint to get the files in the recommendet > format. > I will ask them immediately which whether the pdf is allowed or not, > becaus they have two different instruction sites :-( > > Regards Knut > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >
Gabor Grothendieck schrieb:>If you have not already tried it try creating a fig file: > >xfig("myfile.fig") >plot(1:10) >dev.off() > >and then using the fig2dev utility (find it via google) to convert it to a tiff: > >fig2dev -L tiff myfile.fig > myfile.tiff > > >Error:: fig2def: broken pipe <ghostscript aborted?> command was gs -q -dSAFER -sDEVICE=tiff24nc -r80 -g3830x506 -sOutputFile=44.tif
but back to the last problem, what could be wrong that the ylab is not displayed as expected? with regards Knut
Knut Krueger schrieb:>Ok there is a second description for the file format :-( >http://authors.elsevier.com/ArtworkInstructions.html?dc=AI2 >there are pdf formats welcome but with defined conditions: > >>Maybe anybody could give me a hint to get the files in the recommendet >format. >I will ask them immediately which whether the pdf is allowed or not, >becaus they have two different instruction sites :-( > >This one is genarally for elsvier journals, but if there is a special description in the journal page, authors must use this ... means: EPS: Vector drawings. Embed the font or save the text as "graphics". TIFF: Colour or greyscale photographs (halftones): always use a minimum of 300 dpi. TIFF: Bitmapped line drawings: use a minimum of 1000 dpi. TIFF: Combinations bitmapped line/half-tone (colour or greyscale): a minimum of 500 dpi is required. with regards Knut Krueger -- with regards Knut Krueger http://www.biostatistic.de