[R] Flickering when scrolling in R graphics windows

Ziyun Tang tz|yun2 @end|ng |rom gm@||@com
Sat Jan 21 21:14:15 CET 2023


Hello, I have been experiencing some issues regarding scrolling with
the mouse or trackpad in R graphics windows (from the base graphics
package), which sometimes results in flickering, and wanted to see if
anyone else had the same issues, or any advice. This happens for R
version 4.2.2 on Windows 10 x64, and occurs when using Rgui and at the
command line (whenever graphics windows are invoked). Note that some
of the example code below can cause flickering and can be an issue for
those with photosensitive epilepsy.

Specifically, I have been experiencing three main issues, as follows:

1. When viewing a dataset with View(), the graphics window flickers
when scrolling downwards too quickly, even with the option
buffered=TRUE. For example:
> View(iris)

2. When viewing a graph with plot(), and scrolling down, the graphics
window flickers between the background and the graph itself. For
example:
> plot(iris$Sepal.Length, iris$Sepal.Width)

3. When viewing a matrix of scatterplots with pairs(), and scrolling
down, the graphics window flickers between the background and the
individual scatterplots. In some instances, when scrolling down with
the trackpad, the window flickers continuously, and subsequently
closing the window crashes R. For example:
> pairs(iris[1:4])

My sessionInfo() is as follows:

R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8

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

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

Thank you in advance,
Ziyun



More information about the R-help mailing list