Learn R Programming

Gviz (version 1.16.1)

CustomTrack-class: CustomTrack class and methods

Description

A fully customizable track object to be populated via a user-defined plotting function.

Usage

CustomTrack(plottingFunction=function(GdObject, prepare=FALSE, ...){}, variables=list(), name="CustomTrack",  ...)

Arguments

plottingFunction
A user-defined function to be executed once the track coordinates have been properly set up. The function needs to accept two mandatory arguments: GdObject, the CustomTrack object to be plotted, and prepare, a logical flag indicating whether the function has been called in preparation mode or in drawing mode. It also needs to return the input GdObject, potentially with modifications.
variables
A list of additional variables for the user-defined plotting function.
name
Character scalar of the track's name.
...
Additional items which will all be interpreted as further display parameters. See settings and the "Display Parameters" section below for details.

Objects from the Class

Objects can be created using the constructor function CustomTrack.

Extends

Class "GdObject", directly.

Details

A track to allow for any sort of plotting, with the currently displayed genomic location set. Essentially this acts as a simple callback into the Gviz plotting machinery after all the track panels and coordinates have been set up. It is entirely up to the user what to plot in the track, or even to use the predefined coordinate system. The only prerequesite is that all plotting operations need to utilize Grid graphics.

See Also

DisplayPars

GdObject

ImageMap

plotTracks

settings