csa: Close all open screens

View source: R/cf_csa.R

csaR Documentation

Close all open screens

Description

Closes the screens open, which happens when plotting with 'split.screen' is interrupted. It often happens when there is a error while plotting. When you try to plot the next thing it gives an error. Running this function will reset the plot screen. It just does 'close.screen(all.screens=TRUE)' but is faster to type.

Usage

csa(silent = FALSE)

Arguments

silent

Should the output of 'close.screen' not be returned?

Examples

# Split screen into fourths
split.screen(c(2,2))
hist(rnorm(100))
screen(2)
hist(runif(100))
# Use csa() to go back to normal plotting
csa()
hist(rexp(100))

CollinErickson/contour documentation built on Sept. 14, 2024, 11:22 p.m.