R/ClearPlot.R

Defines functions ClearPlot

Documented in ClearPlot

#write a program to clear the graphics output if a plot is displayed
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.