Re: [R] Preparing high quality figures with tiff as end result

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 23 May 2008 17:15:42 +0100 (BST)

One bit you didn't tell us was that the journal asks for 600dpi TIFF files, but you also forgot to tell R that.

Try bitmap(type="tifflzw", res=600) -- you probably will not need anti-aliasing.

On Fri, 23 May 2008, Prof Brian Ripley wrote:

> Try bitmap(): this produces PostScript and converts with ghostscript.
>
> BTW, everything (including text) in TIFF files *is* 'low-res bitmaps' by
> definition, so you cannot avoid this. Anti-aliasing *may* help, and the
> bitmap() device in R-devel supports it.
>
> On Fri, 23 May 2008, Gustaf Rydevik wrote:
>
>> Hi all,
>>
>> I'm currently preparing some figures that will be submitted to PloS One.
>> In their guidelines they state that they will only accept figures in
>> tiff or eps format, with the warning that eps figures will be
>> converted to tiff format ( see
>> http://www.plosone.org/static/figureGuidelines.action ).
>>
>> Because of this conversion, I figured I'd generate tiff-format figures
>> from the beginning.
>> However, a number of issues cropped up:
>> 1) using
>>
>> library(Cairo)
>> CairoTIFF("test.tif")
>>
>> I get " Sorry, this Cairo was compiled without tiff support.". I tried
>> finding out how to recompile Cairo, but got lost in a lot of confusing
>> talk about GTK+, downloaded dll files that I didn't know how to use
>> etc.
>>
>> so I turned to plain tiff(), and
>>
>> 2) R started crashing on me.The following code
>>
>> tiff("test.tif")
>> plot(rnorm(100))
>> dev.off()
>>
>> ,crashes R (i.e "R GUI has encountered a problem and needs to
>> close...") every third time or so.
>> When it does work, the resulting output is not too pretty.
>
> Which means what?
>
>> So I turned to using postscript files. However, Plos One requires that
>> fonts be embedded into the figure.
>> embedFonts() works for this, but the result is that text becomes
>> low-res bitmaps, and I don't know how to solve this.
>>
>> So basically my question is: How should I go about generating graphics
>> that will look as nice as possible given the above constraints?
>>
>> Many thanks in advance,
>>
>> Gustaf
>>
>>
>>
>>
>> --
>> Gustaf Rydevik, M.Sci.
>> tel: +46(0)703 051 451
>> address:Essingetorget 40,112 66 Stockholm, SE
>> skype:gustaf_rydevik
>>
>> ______________________________________________
>> R-help_at_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.
>>
>
> --
> Brian D. Ripley, ripley_at_stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_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.
Received on Fri 23 May 2008 - 17:47:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 23 May 2008 - 18:30:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive