[R-SIG-Mac] point size in svg

peter dalgaard pd@|gd @end|ng |rom gm@||@com
Mon Jun 24 11:10:56 CEST 2019


Works fine for me on 10.14.5, both with CRAN-supplied 3.6.0 and locally compiled  3.6.0 Patched (2019-06-23 r76734).

I suspect that you might have a font misconfiguration of sorts on your Mojave machine.

-pd

> On 24 Jun 2019, at 09:25 , Spencer Graves <spencer.graves using prodsyse.com> wrote:
> 
> �� Thanks to David Winsemius for his reply.� His attachment came 
> through and displayed consistent with the R documentation.� Thus, the 
> cex.axis and cex arguments work fine with R 3.5.1 (2018-07-02) and 
> "Feather Spray" on OS X 10.11.6, but they don't work properly with the 
> current version of R under the current version of macOS.
> 
> 
> �� Spencer
> 
> 
> On 2019-06-24 00:59, David Winsemius wrote:
>>> On Jun 23, 2019, at 10:04 PM, Spencer Graves <spencer.graves using prodsyse.com> wrote:
>>> 
>>> Hello, All:
>>> 
>>> 
>>>       I'm unable to control font size in plots created by "svg" in R 3.6.0 on macOS Mojave 10.14.5.  Consider the following:
>>> 
>>> 
>>> svg('cex-svg.svg')
>>> cex. <- 5
>>> plot(1:2, cex.axis=cex.)
>>> text(1:2, 1:2, c('as', 'DF'),
>>>           cex=cex.)
>>> dev.off()
>>> 
>>> 
>>>       When I run this in R 3.5.2 under Windows 7, it works fine.  In R 3.6.0 under macOS 10.14.5, I get tiny fonts.  Changing "cex." has no impact on the result.  A question about this to R-Devel generated replies from Peter Langfelder and David Winsemius, who noted that it worked fine under Ubuntu 18.04 (supposedly with R 3.15.2 -- probably R 3.5.2, but I'm not sure).
>> You should be sure.
>> 
>>>  I experimented with the width, height, pointsize and family arguments for "svg", without solving this problem.
>> With R version 3.5.1 (2018-07-02) -- "Feather Spray" on OS X 10.11.6 I am unable to reproduce. My Mac hardware is considered well past (Apple) end of life despite its functionality, so I cannot upgrade my OS. I'm attaching the file that is the result so Spencer can view it, although I suspect it will be scrubbed by the mail-server.
>> 
>> 
>> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes using cbs.dk  Priv: PDalgd using gmail.com



More information about the R-SIG-Mac mailing list