ClearPlot: Clears the output of the graphic device and doesn't throw an...

View source: R/ClearPlot.R

ClearPlotR Documentation

Clears the output of the graphic device and doesn't throw an error if the graphic device is unused by R

Usage

ClearPlot()

Details

The ClearPlot() function has no return type and does not pass any arguments

Value

The ClearPlot() function returns nothing

Author(s)

Chitran Ghosal

Examples

ClearPlot()

ClearPlot<-function(){
  if (names(dev.cur()) !='null device'){
    invisible(dev.off())
  }
  #return NULL
}

Chitran1987/StatsChitran documentation built on Feb. 23, 2025, 8:30 p.m.