Learn R Programming

rasterpdf (version 0.1.1)

dev.off: Shut down a graphics device

Description

Please see the manual page for grDevices::dev.off(). Package rasterpdf overrides the function in order to provide functionality of raster_pdf(), but internally calls grDevices::dev.off().

Usage

dev.off(which = grDevices::dev.cur())

Arguments

which

An integer that specifies the device number. Default is the current device.

See Also

grDevices::dev.off()

Examples

Run this code
# NOT RUN {
raster_pdf(tempfile(fileext = ".pdf"))
plot(iris)
dev.off()

# }

Run the code above in your browser using DataLab