powered by
Checks to see if the user is in RStudio. If so, then it changes the device to a popup window.
set_external(ext = TRUE, width = 10, height = 6)
A logical indicating whether to plot in a popup or within the RStudio UI.
logical
Width in pixels of the popup window
Height in pixels of the popup window
Depending on the operating system, the default drivers attempted to be used are:
OS X: quartz()
Linux: x11()
Windows: windows()
Note, this setting is not permanent. Thus, the behavioral change will last until the end of the session.
Also, the active graphing environment will be killed. As a result, any graphs that are open will be deleted.
# NOT RUN { # Turn on external graphs external_graphs() # Turn off external graphs external_graphs(F) # } # NOT RUN { # }
Run the code above in your browser using DataLab