Line Track and Area Track

Line Track is created from a series of points in the track (i.e. width-one GRanges and their height). These points are applied a tension to smooth the connections between points.

Area Track is similar to Line Track but coloring the area behind the curve.

suppressPackageStartupMessages({
    library(TnT)
    library(GenomicFeatures)
})
set.seed(69)

Basic LineTrack Example

pos <- IRanges(seq(1, 1000, by = 10), width = 1)
height <- .5 + cumsum(runif(length(pos), min = -.1, max = .1))
height[height >= 1] <- 1
height[height <= 0] <- 0

ltrack <- TnT::LineTrack(pos, value = height, color = "blue")
TnTBoard(ltrack)



Basic AreaTrack Example

artrack <- TnT::AreaTrack(pos, value = height, color = "blue")
TnTBoard(artrack)



Session Info

sessionInfo()


Try the TnT package in your browser

Any scripts or data that you put into this service are public.

TnT documentation built on Nov. 8, 2020, 8:11 p.m.