Learn R Programming

trackr (version 0.10.7)

saveBasicPlot: Save the plot object owned by an object of class/superclass PlotFeatureSet as an image.

Description

Save a plot to an image file as part of the record process. This generally shouldn't need to be overwritten.

Usage

saveBasicPlot(object, filename, ...)

# S4 method for PlotFeatureSet saveBasicPlot( object, filename, type = c("png", "jpeg", "jpg", "tiff", "tif", "bmp"), width = 7, height = 7, dpi = 300 )

Arguments

object

An object of (super)class PlotFeatureSet or plot object of class ggplot or trellis.

filename

The full filename, including path, where the plot should be saved.

...

Other named arguments passed on to the class-specific save method.

type

The type of image to save. Default is "png"; should be one of "jpeg", "jpg", "tiff", "tif", "png", or "bmp". In future versions, this should be automatically determined from the filename.

width

Width of output, in inches

height

Height of output, in inches

dpi

Resolution of output, in pixels per inch

Value

A boolean indicating success of the save operation.

Functions

  • saveBasicPlot,PlotFeatureSet-method: Save the plot object owned by an object of class/superclass PlotFeatureSet as an image.