An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080311/5d6c4955/attachment.pl
Jpeg and pixel
9 messages · thomas.schwander at mvv.de, Alberto Monteiro, Brian Ripley
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Hi guys, I've got tthe following question: Why do my fonts look a bit grubby when I use the jpeg() function? I see the pixels of the font. The quality is set to 100%. If this is normal with jpeg(), which function would you propose me to use instead?
png(), as the help page suggested. The 'P' in JPEG stands for 'Photographic', and the format is not intended for text and line diagrams.
Kind regards, Thomas
________________________________ I'm using R 2.6.2 on Windows XP, SP2 [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
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
Hi Brian,
Thank you for your fast answer. It looks a little bit better now. Nevertheless I see pixels. May it depend on the font used?
In the praeambel I use
windowsFonts(Frutiger = windowsFont("Frutiger 45 Light"))
par(family="Frutiger")
And later, to create a wide table on the right of the plot
text(par("usr")[2] + 3.95, ... ,family="Frutiger")
Regards,
Thomas
-----Urspr?ngliche Nachricht-----
Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Gesendet: Dienstag, 11. M?rz 2008 09:28
An: Schwander, Thomas, KS.R
Cc: r-help at r-project.org
Betreff: Re: [R] Jpeg and pixel
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Hi guys, I've got tthe following question: Why do my fonts look a bit grubby when I use the jpeg() function? I see the pixels of the font. The quality is set to 100%. If this is normal with jpeg(), which function would you propose me to use instead?
png(), as the help page suggested. The 'P' in JPEG stands for 'Photographic', and the format is not intended for text and line diagrams.
Kind regards, Thomas
________________________________ I'm using R 2.6.2 on Windows XP, SP2 [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
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
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Hi Brian, Thank you for your fast answer. It looks a little bit better now. Nevertheless I see pixels. May it depend on the font used?
These _are_ bitmap formats: of course you will see pixels if you look closely enough! But beware that many of the artefacts people see are from their viewer and not from the file R produces.
In the praeambel I use
windowsFonts(Frutiger = windowsFont("Frutiger 45 Light"))
par(family="Frutiger")
And later, to create a wide table on the right of the plot
text(par("usr")[2] + 3.95, ... ,family="Frutiger")
Regards,
Thomas
-----Urspr?ngliche Nachricht-----
Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Gesendet: Dienstag, 11. M?rz 2008 09:28
An: Schwander, Thomas, KS.R
Cc: r-help at r-project.org
Betreff: Re: [R] Jpeg and pixel
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Hi guys, I've got tthe following question: Why do my fonts look a bit grubby when I use the jpeg() function? I see the pixels of the font. The quality is set to 100%. If this is normal with jpeg(), which function would you propose me to use instead?
png(), as the help page suggested. The 'P' in JPEG stands for 'Photographic', and the format is not intended for text and line diagrams.
Kind regards, Thomas
________________________________ I'm using R 2.6.2 on Windows XP, SP2 [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- 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
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
Thanks again, but I see the pixels on my print... The width is set to 1560, the height to 566. Is the assignment to use Frutiger correct? Regards -----Urspr?ngliche Nachricht----- Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Gesendet: Dienstag, 11. M?rz 2008 10:08 An: Schwander, Thomas, KS.R Cc: r-help at r-project.org Betreff: Re: AW: [R] Jpeg and pixel
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Hi Brian, Thank you for your fast answer. It looks a little bit better now. Nevertheless I see pixels. May it depend on the font used?
These _are_ bitmap formats: of course you will see pixels if you look closely enough! But beware that many of the artefacts people see are from their viewer and not from the file R produces.
In the praeambel I use
windowsFonts(Frutiger = windowsFont("Frutiger 45 Light"))
par(family="Frutiger")
And later, to create a wide table on the right of the plot
text(par("usr")[2] + 3.95, ... ,family="Frutiger")
Regards,
Thomas
-----Urspr?ngliche Nachricht-----
Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Gesendet: Dienstag, 11. M?rz 2008 09:28
An: Schwander, Thomas, KS.R
Cc: r-help at r-project.org
Betreff: Re: [R] Jpeg and pixel
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Hi guys, I've got tthe following question: Why do my fonts look a bit grubby when I use the jpeg() function? I see the pixels of the font. The quality is set to 100%. If this is normal with jpeg(), which function would you propose me to use instead?
png(), as the help page suggested. The 'P' in JPEG stands for 'Photographic', and the format is not intended for text and line diagrams.
Kind regards, Thomas
________________________________ I'm using R 2.6.2 on Windows XP, SP2 [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- 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
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
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Thanks again, but I see the pixels on my print... The width is set to 1560, the height to 566. Is the assignment to use Frutiger correct?
How would I know? If you doubt this, try it with a standard font and compare. Note what I said about artefacts: something other than R is involved when you print. This is the sort of thing which happens if bitmap images are not printed at their native resolution.
Regards -----Urspr?ngliche Nachricht----- Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Gesendet: Dienstag, 11. M?rz 2008 10:08 An: Schwander, Thomas, KS.R Cc: r-help at r-project.org Betreff: Re: AW: [R] Jpeg and pixel On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Hi Brian, Thank you for your fast answer. It looks a little bit better now. Nevertheless I see pixels. May it depend on the font used?
These _are_ bitmap formats: of course you will see pixels if you look closely enough! But beware that many of the artefacts people see are from their viewer and not from the file R produces.
In the praeambel I use
windowsFonts(Frutiger = windowsFont("Frutiger 45 Light"))
par(family="Frutiger")
And later, to create a wide table on the right of the plot
text(par("usr")[2] + 3.95, ... ,family="Frutiger")
Regards,
Thomas
-----Urspr?ngliche Nachricht-----
Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Gesendet: Dienstag, 11. M?rz 2008 09:28
An: Schwander, Thomas, KS.R
Cc: r-help at r-project.org
Betreff: Re: [R] Jpeg and pixel
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
Hi guys, I've got tthe following question: Why do my fonts look a bit grubby when I use the jpeg() function? I see the pixels of the font. The quality is set to 100%. If this is normal with jpeg(), which function would you propose me to use instead?
png(), as the help page suggested. The 'P' in JPEG stands for 'Photographic', and the format is not intended for text and line diagrams.
Kind regards, Thomas
________________________________ I'm using R 2.6.2 on Windows XP, SP2 [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- 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
-- 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
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
Prof Brian Ripley wrote:
How would I know? If you doubt this, try it with a standard font and compare. Note what I said about artefacts: something other than R is involved when you print. This is the sort of thing which happens if bitmap images are not printed at their native resolution.
I saw that R can write in SVG format, using the RSVGTipsDevice library. I think SVG is the closest format to losslessness when printing. Of course, my ecological motivation would ban all formats that make printing easy, to save the environment by saving a few trees :-) Alberto Monteiro
I'll try it. thx -----Urspr?ngliche Nachricht----- Von: Alberto Monteiro [mailto:albmont at centroin.com.br] Gesendet: Dienstag, 11. M?rz 2008 12:24 An: Prof Brian Ripley; Schwander, Thomas, KS.R Cc: r-help at r-project.org Betreff: Re: [R] Jpeg and pixel
Prof Brian Ripley wrote:
How would I know? If you doubt this, try it with a standard font and compare. Note what I said about artefacts: something other than R is involved when you print. This is the sort of thing which happens if bitmap images are not printed at their native resolution.
I saw that R can write in SVG format, using the RSVGTipsDevice library. I think SVG is the closest format to losslessness when printing. Of course, my ecological motivation would ban all formats that make printing easy, to save the environment by saving a few trees :-) Alberto Monteiro
You'll do much better with e.g. PDF, a format designed for printing and that used by the printing industry.
On Tue, 11 Mar 2008, thomas.schwander at mvv.de wrote:
I'll try it. thx -----Urspr?ngliche Nachricht----- Von: Alberto Monteiro [mailto:albmont at centroin.com.br] Gesendet: Dienstag, 11. M?rz 2008 12:24 An: Prof Brian Ripley; Schwander, Thomas, KS.R Cc: r-help at r-project.org Betreff: Re: [R] Jpeg and pixel Prof Brian Ripley wrote:
How would I know? If you doubt this, try it with a standard font and compare. Note what I said about artefacts: something other than R is involved when you print. This is the sort of thing which happens if bitmap images are not printed at their native resolution.
I saw that R can write in SVG format, using the RSVGTipsDevice library. I think SVG is the closest format to losslessness when printing. Of course, my ecological motivation would ban all formats that make printing easy, to save the environment by saving a few trees :-) Alberto Monteiro
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