Learn R Programming

fdm2id (version 0.9.5)

exportgraphics: Open a graphics device

Description

Starts the graphics device driver

Usage

exportgraphics(file, type = tail(strsplit(file, split = "\\.")[[1]], 1), ...)

Arguments

file

A character string giving the name of the file.

type

The type of graphics device.

...

Other parameters.

See Also

closegraphics, toggleexport, Devices

Examples

Run this code
# NOT RUN {
data (iris)
exportgraphics ("export.pdf")
plotdata (iris [, -5], iris [, 5])
closegraphics()
# }

Run the code above in your browser using DataLab