[R] symbols duplicated in plot output

Paul Murrell paul at stat.auckland.ac.nz
Wed Jul 1 02:02:02 CEST 2009


Hi

It is indeed a bug.
Should have a fix soon.
Thanks for the report!

Paul


baptiste auguie wrote:
> Thanks for the info.
> 
> It does look like a bug to me, but it's always best to try and identify the
> cause before facing the challenge of a legitimate bug submission.
> 
> On Mac OS (same info as my first post), the duplicated "mu" is only present
> in the pdf output of pdf(), for both grid and base graphics. Cairo and
> quartz don't duplicate the symbol. postscript() works fine too (understand
> 'as I expect') but I haven't been able to check without converting the file
> to pdf first.
> 
> 
> library(grid)
> pdf("testPdf.pdf")
> plot.new()
> text(0.5,0.5, expression(mu),cex=10)
> grid.newpage()
> grid.text(expression(mu),gp=gpar(cex=10))
> dev.off()
> 
> postscript(file="testEps.eps")
> grid.newpage()
> grid.text(expression(mu),gp=gpar(cex=10))
> dev.off()
> 
> quartz(file="testQuartz.pdf",type = "pdf")
> plot.new()
> text(0.5,0.5, expression(mu),cex=10)
> dev.off()
> 
> 
> library(Cairo)
> Cairo(file="testCairo.pdf",type="pdf",dpi=72)
> plot.new()
> text(0.5,0.5, expression(mu),cex=10)
> dev.off()
> 
> 
> system("ps2pdf testEps.eps testEps.pdf")
> 
> # not necessarily enlightening ...
> #system("cat testPdf.pdf",int=T) # only this one has duplicated symbols
> #system("cat testEps.pdf",int=T)
> #system("cat testQuartz.pdf",int=T)
> #system("cat testCairo.pdf",int=T)
> 
> 
> 
> 
> 
> 
> 2009/6/30 Dieter Menne <dieter.menne at menne-biomed.de>
> 
>>
>>
>> baptiste auguie-5 wrote:
>>>
>>> pdf()
>>> plot(1, xlab=expression(mu))
>>> dev.off()
>>>
>>> If I open this pdf in Illustrator CS4, there are two "mu" on top of each
>>> other, giving it a somewhat bold aspect. Other characters not from the
>>> symbol font are just output in one version. I'm guessing this may be very
>>> much dependent on my config, which is,
>>>
>>> sessionInfo()
>>> R version 2.9.0 (2009-04-17)
>>> i386-apple-darwin9.6.0
>>>
>> I was able to reproduce this on Windows. When you open the file with
>> notepad, you will notice duplicate lines just above the endstream:
>>
>> BT
>> 0.000 0.000 0.000 rg
>> /F6 1 Tf 12.00 0.00 -0.00 12.00 262.94 18.52 Tm (m) Tj
>> ET
>>
>> When you remove these, problem is gone. I would consider this a bug, but do
>> not dare to call it one.
>>
>> Dieter
>>
>>
>> R version 2.9.0 (2009-04-17)
>> i386-pc-mingw32
>>
>> locale:
>>
>> LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252
>>
>> attached base packages:
>> [1] stats     graphics  grDevices datasets  utils     methods   base
>>
>> loaded via a namespace (and not attached):
>> [1] tools_2.9.0
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/symbols-duplicated-in-plot-output-tp24259424p24266887.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> 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.
>>
> 
> 	[[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.

-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/




More information about the R-help mailing list