Re: [Rd] png and resolution (PR#8066)

From: <ripley_at_stats.ox.ac.uk>
Date: Mon 15 Aug 2005 - 14:49:25 GMT


Where did you get `result' from? (What program spells that badly and where does ppi come from?)

Your last example gives for me (using ImageMagick)

identify -format "%wx%h res: %x" Rplot001.png 1920x1920 res: 944.88 PixelsPerCentimeter

which is correct.

I believe it is your PNG reader that is buggy, not R.

On Mon, 15 Aug 2005 kkrueger@einthal.de wrote:

> Full_Name: Knut krueger
> Version: 2.1.1
> OS: xp Home
> Submission from: (NULL) (149.225.134.34)
>
>
> In the png function the value res seems to be inactive:
>
> bmp(filename = "c:/r/Rplot%03d.bmp", width = 1920, height = 1920, pointsize =
> 48, bg = "white", res = 2400)
> result:
> witdh/heigth = 1920 <> 20.32 mm
> ppi=2400
> Results as expected
>
>
> png(filename = "c:/r/Rplot%03d.png", width = 1920, height = 1920, pointsize =
> 48, bg = "white", res = 2400)
>
> witdh/heigth = 1920 <> 20.32 mm
> ppi=150
> Result not as expected.
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley@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-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue Aug 16 01:02:44 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:37 GMT