From ripley at stats.ox.ac.uk  Mon Aug 15 16:49:25 2005
From: ripley at stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Mon, 15 Aug 2005 16:49:25 +0200 (CEST)
Subject: [Rd] png and resolution (PR#8066)
Message-ID: <20050815144925.4EF8BA27D@slim.kubism.ku.dk>

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 at 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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

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



[Rd] png and resolution (PR#8066)
ripley@stats.ox.ac.uk