outputType: function to validate the type of file format and open the...

View source: R/plotting-utils.R

outputTypeR Documentation

function to validate the type of file format and open the corresponding file

Description

function to validate the type of file format and open the corresponding file

Usage

outputType(
  device,
  dirSave = NULL,
  fileName,
  fileFmts,
  combinePlts,
  msg = "plot"
)

Arguments

device

string to select the output format: 'PDF'/'PNG'/'JPEG' or 'screen'

dirSave

specify a valid directory where to save the file

fileName

name of the file

fileFmts

list with the acceptable format types, eg. c("PDF","PNG","JPEG")

combinePlts

boolean flag indicating whether plots are combined or not

msg

optional string to customiza message to the user


Visualize.CRAN.Downloads documentation built on March 31, 2023, 7:21 p.m.