clearPlot: Clear plotting device

Description Usage Arguments Author(s)

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
clearPlot(dev = dev.cur(), removeData = TRUE, force = FALSE)

## S4 method for signature 'numeric,logical'
clearPlot(dev = dev.cur(), removeData = TRUE,
  force = FALSE)

## 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 = dev.cur(), removeData = TRUE,
  force = FALSE)

Arguments

dev

Numeric. Device number to clear.

removeData

Logical indicating whether any data that was stored in the .spadesEnv should also be removed; i.e., not just the plot window wiped.

force

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.

Author(s)

Eliot McIntire


SpaDES documentation built on May 29, 2017, 4:25 p.m.

Search within the SpaDES package
Search all R packages, documentation and source code