clearPlot | R Documentation |
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 Plot
.
Sometimes, the metadata of a previous plot will prevent correct plotting of
a new Plot
call.
Use clearPlot
to clear the device and all the associated metadata manually.
clearPlot(
dev = dev.cur(),
removeData = TRUE,
force = FALSE,
verbose = getOption("quickPlot.verbose")
)
## S4 method for signature 'numeric,logical'
clearPlot(
dev = dev.cur(),
removeData = TRUE,
force = FALSE,
verbose = getOption("quickPlot.verbose")
)
## S4 method for signature 'numeric,missing'
clearPlot(dev, force)
## S4 method for signature 'missing,logical'
clearPlot(removeData, force)
## S4 method for signature 'missing,missing'
clearPlot(dev, removeData, force)
dev |
Numeric. Device number to clear. |
removeData |
Logical indicating whether any data that was stored in the
|
force |
Logical or "all". Sometimes the graphics state cannot be fixed by a simple
|
verbose |
Numeric or logical. If |
Eliot McIntire
Plot()
.
if (interactive()) {
Plot(1:10)
clearPlot() # clears
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.