open_graphics_device: Open a graphics device based on a file name

Description Usage Arguments Value Examples

View source: R/plots.R

Description

open_graphics_device takes a file name and opens a graphics device based on the file suffix. Defaults to pdf if no match is found.

Usage

1
open_graphics_device(filename = "plot.pdf", ...)

Arguments

filename

character, the filename to use

...

Arguments passed on to the graphics device

Value

TRUE invisibly

Examples

1
2
3
open_graphics_device(filename = 'plot.eps')
open_graphics_device(filename = 'plot.eps', width = 6, height = 5)
open_graphics_device(filename = 'plot.png', width = 640, height = 480)

richysix/miscr documentation built on April 30, 2020, 12:14 a.m.