Skip to content

High resolution plots

1 message · Knut Krueger

#
Sorry i sent the answer not to the mailing list - here it is

Brian D Ripley schrieb:
Ok first:
I do not want anybody to get angry and I am the first time in this group.
I will make any mistakes like sending you your own help file and I
apologize in advance for those mistakes.
I tried to include res=600 and res=300 there was no difference in the
file, both size was 4kb  480*480 Pixel and 150 dpi
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=12, res=300)
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=12, res=600)


second attempt was to increase width = 480, height = 480 to width = 960,
height = 960

png(filename = "c:/r/highresplot%d.png",width = 960, height =
960,pointsize=12, res=600)
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=12, res=300)


both is the file size 8kb either with res=300 or res=600
double file size with double size of the device that's what i expected.

The letters are nearly unreadable because they are very small - ok
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=24, res=300)
Letters are in the same size as
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=12, res=300)
also that's what I expected, but the quality of the characters is as bad
as when I would extract the plot with any graphic application
and the small lines from boxplots are sometimes visible sometimes not.
But maybe you are right that I am not understanding the help file, but
I hope that clarifies my problems and my mistakes

with regards
Knut Krueger
http://www.biostatistic.de