[R-SIG-Mac] Miniature plot windows

Wright, Erik Scott ESWRIGHT @end|ng |rom p|tt@edu
Mon Jan 22 17:14:47 CET 2024


I was able to fix the problem by adding to my .Rprofile

setHook(packageEvent("grDevices", "onLoad"),
        function(...) grDevices::quartz.options(dpi=127))

This creates a 7" x 7" plot by default after restarting R. The 127 is the screen's native dpi (254) divided by 2.

I'm not sure where .External(C_Quartz, ...) is getting dpi from when it is NULL (the default), but the value was too small apparently.

Erik


On Jan 22, 2024, at 10:06 AM, Bryan Hanson <hanson using depauw.edu> wrote:

Just guessing here, but did you re-install/update XQuartz?  That’s recommended for new hardware and significant jumps in the R version.

Bryan

On Jan 22, 2024, at 7:41 AM, Wright, Erik Scott <ESWRIGHT using pitt.edu<mailto:ESWRIGHT using pitt.edu>> wrote:

Hi all,

I recently upgraded to a new Macbook Pro (Nov 23). Now every plot is miniaturized.

For example, my screen measures about 13.5" x 8.8" with a ruler. When I create a new plot with plot(1:10) or quartz(height=7, width=7), the plot measures 2.0" x 2.0".

It is simple enough to initialize larger plot windows with dev.new or quartz(height=24.5, width=24.5), but the points and font stay miniaturized. Of course, I could rescale every single plot feature by 3.5-fold, but that seems like an inefficient solution.

Any suggestions would be appreciated.

Erik

R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.2.1

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac using r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

=============
Bryan A. Hanson
Prof. Emeritus, DePauw University
Chemistry & Biochemistry
hanson using depauw.edu<mailto:hanson using depauw.edu>
profbryanhanson using gmail.com<mailto:profbryanhanson using gmail.com>
Nerdy blog: ChemoSpec.org<http://chemospec.org/>
I’m at GMT -7 year round


	[[alternative HTML version deleted]]



More information about the R-SIG-Mac mailing list