Skip to content

plot window not showing most recent plot?

5 messages · Duncan Murdoch, Peter Dalgaard, Timothy Bates

#
In R version: R version 4.0.2 (2020-06-22), I?m seeing the plot window not advance when a new ggplot is drawn.
calls to plot() advance the quartz window to the newest ?frame?, but calls to ggplot2::qplot() show the graph only the first time the function is called in the quartz window?s history.

For subsequent qplots, the pane does not advance to show the new plot, instead staying on which ever ?frame? in the plot history it was at.

repro

plot(wt ~ mpg, data=mtcars) # displays
ggplot2::qplot(mpg, wt, data=mtcars) # doesn't display

close quartz window

qplot(mpg, wt, data=mtcars) # displays
plot(wt ~ mpg, data=mtcars) # displays
qplot(mpg, wt, data=mtcars) # doesn't display

try cmd-] to advance forward into current history? nothing happens (newest plot is not in the (forward) history

try cmd-[ to go back, then cmd-]  cmd-]  to go forward into current history? newest plot displays as it should have the first time
#
Which front end are you using?  The cmd-] and cmd-[ don't do anything in 
the ones I'm using.

Duncan Murdoch
On 05/09/2020 8:23 a.m., Timothy Bates wrote:
#
R for R 4.0.2 GUI 1.72 Catalina build (7847)

Oops, I was going off muscle memory - I see that Quartz:Forward and Back are set to "? tab" and "?? tab"  (which can't do anything as they're captured by the app switcher).

What are you seeing as the keys for Quartz:Forward and Quartz:Back?

Playing around, ? left-arrow works to go back one graph, but only one time, and ? right arrow doesn't do anything.

Clicking the actual menu items when the quartz window contains 2 graphs, back take me back, but then forward doesn't take me forward...
#
Works fine for me when started from R in Terminal. Cmd-leftarrow and Cmd-rightarrow do their thing, as listed in the menu - provided the graphics window has focus, otherwise they switch virtual desktops (of course). 

-pd

  
    
#
OK. Perhaps it's another Big Sur thing.

(and apologies all for mistaking arrow glyph for tab glyph below)