Learn R Programming

unigd (version 0.2.0)

ugd_clear: Clear all unigd plot pages.

Description

This function will only work after starting a device with ugd().

Usage

ugd_clear(which = dev.cur())

Value

Whether there were any pages to remove.

Arguments

which

Which device (ID).

Examples

Run this code
ugd()
plot(1, 1)
hist(rnorm(100))
ugd_clear() # Clear all previous plots
hist(rnorm(100))

dev.off()

Run the code above in your browser using DataLab