[R-SIG-Mac] Dashed line not evenly separated

John Fox j|ox @end|ng |rom mcm@@ter@c@
Thu Feb 24 16:40:21 CET 2022

Hi Duncan,

Your message prompted me to investigate a bit further, and I discovered 
that the pdf looks right when I open it in Adobe Reader or Google Chrome 
but not in the (default) macOS Preview or Safari. That suggests to me 
that the problem may be in macOS.

Just in case it's relevant, my session info:

 > sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.1

Matrix products: default

[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.1.2


On 2022-02-24 6:10 a.m., Duncan Murdoch wrote:
> On 23/02/2022 8:30 p.m., John Fox wrote:
>> Dear Ken,
>> Yes, but I believe that it *should* work even in a small window. For
>> example, the following produces a proper broken line on Windows but not
>> on macOS:
>>     pdf(width=3, height=3)
>>     plot(log10(1:1e4), lty = 2, type="l")
>>     dev.off()
> That one looks fine on my Mac in the PDF output, but not on screen using 
> the default quartz() device.
> R version 4.1.0 Patched (2021-07-09 r80614)
> Platform: x86_64-apple-darwin17.0 (64-bit)
> Running under: macOS Catalina 10.15.7
> Duncan Murdoch
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/

More information about the R-SIG-Mac mailing list