Learn R Programming

rphast (version 1.1)

feat.track: Create a features track...

Description

Create a features track

Usage

feat.track(x, name, short.label=NULL, col="black")

Arguments

x
An object of type feat
name
The name of the track (a character string)
short.label
An optional character string to be displayed in left hand margin of track
col
The color to use plotting this track (can be a single color or a color for each element)

Value

  • An object of type track which can be plotted with plot.track function

Examples

Run this code
exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
featFile <- "sol1.gp"
unzip(exampleArchive, featFile)
f <- read.feat(featFile)
featTrack <- feat.track(f, "basic feature track")
f <- addIntrons.feat(f)
geneTrack <- gene.track(f, "gene track")
plot.track(list(featTrack, geneTrack))
plot.track(list(featTrack, geneTrack, geneTrack, geneTrack, geneTrack), xlim=c(14800, 16000))

Run the code above in your browser using DataLab