pngfile: Function to ease the creation of a png graphic file

Description Usage Arguments Value

Description

This function is used to open the png file or to close the png file. One opened, plots normally sent to the console will be sent to the png file instead.

Usage

1
2
pngfile(onoff, outflag, fname = NA, fpath = NA, width = 1600,
  height = 1000)

Arguments

onoff

A character string to denote whether the file in opened "on" or closed "off". This must be specified.

outflag

Specifies whether the graphical output is sent to the console or the file. This is useful in a script to easily control where the output is sent when several charts are created (send them all to file or the console).

fname

The file name for the output file.

fpath

The path of the output file.

width

The width (in pixels) of the chart.

height

The height (in pixel) of the chart.

Value

Nothing is returned per se. This function opens/close the output channel.


jeanmarcgp/xtsanalytics documentation built on May 19, 2019, 12:38 a.m.