Re: [R] High resolution plots

From: Knut Krueger <Knut-Krueger_at_einthal.de>
Date: Sat 06 Aug 2005 - 20:27:00 EST

Knut Krueger schrieb:

>Is there any possibility to get high resolution plots in a windows xp
>system?
>I tried it with the device function png(filename =
>"c:/r/highresplot%d.png",pointsize=12, res=900)
>but when I try to set: width = 480, height = 480 or pointsize = 12,
>the text is not scaled in the same way as the plots.
>

There are three bmp based functions available;: bmp, jpeg, png

bmp is without compression so I decided not to use it jpeg is no loss less compression so I decided not to use it the third was png

Now I tried the other one and I think that there is a bug in the png code or I do not understand the reason:

jpeg(filename = "c:/r/Rplot%03d.jpg", width = 960, height = 960, pointsize = 24, quality = 100, bg = "white", res = 2400) witdh/heigth = 960 <> 10.16 mm
ppi=2400
Results as expected

jpeg(filename = "c:/r/Rplot%03d.jpg", width = 1920, height = 1920,

          pointsize = 48, quality = 100, bg = "white", res = 2400)

witdh/heigth = 1920 <> 20.32 mm
ppi=2400
Results as expected

bmp(filename = "c:/r/Rplot%03d.bmp", width = 1920, height = 1920, pointsize = 48, bg = "white", res = 2400) 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.

Ok I am able to use the jpeg or bmp format, but does anybody know why the png function does not work in the same way as the jpeg and bmp function?

Regards Knut



R-help@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 Received on Sat Aug 06 20:30:53 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:07:31 EST