plotToFile: Write Plot To File

Description Usage Arguments Details

Description

plotToFile writes plot to PNG file.

Usage

1
plotToFile(plot, resultsDir, file, width = 800, height = 600)

Arguments

plot

Plot to be written to file

resultsDir

A character string giving the path to timestamped results directory

file

A character string giving name of file where the plot will be saved

width

An integer giving width of the device in pixels

height

An integer giving height of the device in pixels

Details

If keep_images is set to 1 in the configuration file (see importConfig) then a subdirectory called images will be created in the timestamped results directory (see makeResultDir). plotToFile writes the designated plot to a PNG file within the images subdirectory.

The dimensions of the plot, in pixels, can be defined using width and height.


sanger-pathogens/deago documentation built on May 28, 2019, 8:42 a.m.