Niels Steen Krogh
2003-Nov-18 13:45 UTC
[R] howto improve sharpeness of fonts in a jpg-image produced by R ?
Hi. I've done a standard barplotexample using R1-8.0, redhat8, probably using a GhostScript-integration. How can I improve the "sharpness" of the fonts. See for example the barplot (originally jpg coming from R) which is part of this screendump: http://www.zug.dk/Members/Nielssteenkrogh/1067525916309553166/element_103003161029 I'm not sure where to improve the this. Is it an R-issue or an GhostScript-issue or? /Niels Cand. Polit. Niels Steen Krogh Solsortvej 44 2000 F. Tlf: 3888 8613 ZiteLab / EmpoweR youR data with R, Zope and SOAP _________________________________________________________________ F? alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
Prof Brian Ripley
2003-Nov-18 14:11 UTC
[R] howto improve sharpeness of fonts in a jpg-image produced by R ?
There are two ways to make jpgs in R: which did you use? If you want a sharp image, why are you using a format designed for photographic images? I suspect your viewer: that example seems as sharp as I would expect viewed in a high-quality JPEG viewer on my LCD screen. On Tue, 18 Nov 2003, Niels Steen Krogh wrote:> Hi. > I've done a standard barplotexample using R1-8.0, redhat8, probably using a > GhostScript-integration. > > How can I improve the "sharpness" of the fonts. > See for example the barplot (originally jpg coming from R) which is part of > this screendump: > http://www.zug.dk/Members/Nielssteenkrogh/1067525916309553166/element_103003161029 > > I'm not sure where to improve the this. Is it an R-issue or an > GhostScript-issue or?-- 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
Marc Schwartz
2003-Nov-18 14:29 UTC
[R] howto improve sharpeness of fonts in a jpg-image produced by R ?
On Tue, 2003-11-18 at 07:45, Niels Steen Krogh wrote:> Hi. > I've done a standard barplotexample using R1-8.0, redhat8, probably using a > GhostScript-integration. > > How can I improve the "sharpness" of the fonts. > See for example the barplot (originally jpg coming from R) which is part of > this screendump: > http://www.zug.dk/Members/Nielssteenkrogh/1067525916309553166/element_103003161029 > > I'm not sure where to improve the this. Is it an R-issue or an > GhostScript-issue or? > > /NielsIn general for fonts, using bitmapped image formats are not the best way to go since they cannot result in "smooth" curves. Depending upon how you plan to actually use the images, PS/EPS/PDF vector based image formats would yield higher quality images and fonts. Be aware also that bitmapped images do not resize well, which is another limitation of that format. HTH, Marc Schwartz
Niels Steen Krogh
2003-Nov-18 15:04 UTC
[R] howto improve sharpeness of fonts in a jpg-image produced by R ?
I used an expression like this: bitmap(file="barplotx.jpg",type="jpeg") barplot(c(1,2,3),c(3,4,5),main=list("Death Rates in Virginia", font = 1)) dev.off() My question: How can I improve the sharpeness of the text "Death Rates in Virginia". Why jpeg: Its part of a web-environment using R through a SOAP-server. I also tried png256, jpeggray and others, but the text "Death Rates in Virginia" does not change sharpeness. /Niels Cand. Polit. Niels Steen Krogh Solsortvej 44 2000 F. Tlf: 3888 8613 ZiteLab / EmpoweR youR data with R, Zope and SOAP>From: Prof Brian Ripley <ripley at stats.ox.ac.uk> >To: Niels Steen Krogh <nielssteenkrogh at hotmail.com> >CC: r-help at stat.math.ethz.ch >Subject: Re: [R] howto improve sharpeness of fonts in a jpg-image produced >by R ? >Date: Tue, 18 Nov 2003 14:11:20 +0000 (GMT) > >There are two ways to make jpgs in R: which did you use? > >If you want a sharp image, why are you using a format designed for >photographic images? > >I suspect your viewer: that example seems as sharp as I would expect >viewed in a high-quality JPEG viewer on my LCD screen. > >On Tue, 18 Nov 2003, Niels Steen Krogh wrote: > > > Hi. > > I've done a standard barplotexample using R1-8.0, redhat8, probably >using a > > GhostScript-integration. > > > > How can I improve the "sharpness" of the fonts. > > See for example the barplot (originally jpg coming from R) which is part >of > > this screendump: > > >http://www.zug.dk/Members/Nielssteenkrogh/1067525916309553166/element_103003161029 > > > > I'm not sure where to improve the this. Is it an R-issue or an > > GhostScript-issue or? > >-- >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 > >_________________________________________________________________ F? alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/