[R] Jpeg and pixel

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Mar 11 10:34:49 CET 2008


On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:

> Thanks again,
>
> but I see the pixels on my print... The width is set to 1560, the height to 566.
>
> Is the assignment to use Frutiger correct?

How would I know?  If you doubt this, try it with a standard font and 
compare.

Note what I said about artefacts: something other than R is involved when 
you print.  This is the sort of thing which happens if bitmap images are 
not printed at their native resolution.

>
> Regards
>
> -----Ursprüngliche Nachricht-----
> Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> Gesendet: Dienstag, 11. März 2008 10:08
> An: Schwander, Thomas, KS.R
> Cc: r-help at r-project.org
> Betreff: Re: AW: [R] Jpeg and pixel
>
> On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
>
>> Hi Brian,
>>
>> Thank you for your fast answer. It looks a little bit better now.
>> Nevertheless I see pixels. May it depend on the font used?
>
> These _are_ bitmap formats: of course you will see pixels if you look closely enough!
>
> But beware that many of the artefacts people see are from their viewer and not from the file R produces.
>
>> In the praeambel I use
>> 	windowsFonts(Frutiger = windowsFont("Frutiger 45 Light"))
>> 	par(family="Frutiger")
>>
>> And later, to create a wide table on the right of the plot
>> 	text(par("usr")[2] + 3.95, ... ,family="Frutiger")
>>
>> Regards,
>> Thomas
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
>> Gesendet: Dienstag, 11. März 2008 09:28
>> An: Schwander, Thomas, KS.R
>> Cc: r-help at r-project.org
>> Betreff: Re: [R] Jpeg and pixel
>>
>> On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
>>
>>> Hi guys,
>>>
>>> I've got tthe following question:
>>>
>>> Why do my fonts look a bit grubby when I use the jpeg() function? I
>>> see the pixels of the font. The quality is set to 100%.
>>> If this is normal with jpeg(), which function would you propose me to
>>> use instead?
>>
>> png(), as the help page suggested.  The 'P' in JPEG stands for
>> 'Photographic', and the format is not intended for text and line
>> diagrams.
>>
>>>
>>> Kind regards,
>>> Thomas
>>> ________________________________
>>> I'm using R 2.6.2 on Windows XP, SP2
>>>
>>>
>>>
>>> 	[[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> 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
>

-- 
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


More information about the R-help mailing list