Display graphics in plots window pane rather than

2019-02-21 12:25发布

问题:

I googled this to no avail. I must have unknowingly changed some setting because now when I print a plot or histogram rather than displaying the plot in the plots window, a new window opens with the plot. The title of the new window reads "R Graphics: Device 2 (ACTIVE)".

回答1:

It is a problem that appeared with R 3.3.0 for some RStudio versions. You can check your version with version in RStudio. It should work with a RSudio 0.99.902.

For more details, check here.



回答2:

Some code you ran probably pushed a new graphics device onto the stack. You can turn it off with:

> dev.off()

See the R documentation for managing output devices.