Open a new plotting window

newPlot(noRStudioGD = TRUE, ...)

dev.useRSGD(useRSGD = FALSE)

Arguments

noRStudioGD

Logical Passed to dev.new. Default is TRUE to avoid using RStudio graphics device, which is slow.

...

Additional arguments.

useRSGD

Logical indicating whether the default device should be the RStudio graphic device, or the platform default (quartz on macOS; windows on Windows; x11 on others, e.g., Linux).

Note

dev.new is supposed to be the correct way to open a new window in a platform-generic way; however, doesn't work in RStudio (SpaDES#116). Use dev.useRSGD(FALSE) to avoid RStudio for the remainder of this session, and dev.useRSGD(TRUE) to use the RStudio graphics device. (This sets the default device via the device option.)

See also

Examples

# NOT RUN {
  ## set option to avoid using Rstudio graphics device
  dev.useRSGD(FALSE)

  ## open new plotting window
  newPlot()
# }