Clear plotting device
Under some conditions, a device and its metadata need to be cleared manually.
This can be done with either the
new = TRUE argument within the call to
Sometimes, the metadata of a previous plot will prevent correct plotting of
clearPlot to clear the device and all the associated metadata
clearPlot(dev = dev.cur(), removeData = TRUE, force = FALSE)
# S4 method for numeric,logical clearPlot(dev = dev.cur(), removeData = TRUE, force = FALSE)
# S4 method for numeric,missing clearPlot(dev, force)
# S4 method for missing,logical clearPlot(removeData, force)
# S4 method for missing,missing clearPlot(dev = dev.cur(), removeData = TRUE, force = FALSE)
Numeric. Device number to clear.
Logical indicating whether any data that was stored in the
.spadesEnvshould also be removed; i.e., not just the plot window wiped.
Logical or "all". Sometimes the graphics state cannot be fixed by a simple clearPlot(). If TRUE, this will close the device and reopen the same device number. If "all", then all spades related data from all devices will be cleared, in addition to device closing and reopening.