Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (24 sloc) 591 Bytes
---
title: "Vline Track"
---
Vline Track displays vertical lines in the given positions (i.e. width-one GRanges).
```{r}
suppressPackageStartupMessages({
library(TnT)
library(GenomicFeatures)
})
set.seed(42)
```
## Basic Example
```{r}
pos <- IRanges(start = sample(1:1000, 6), width = 1)
colors <- c("red", "yellow", "green", "cyan", "blue", "magenta")
vltrack <- TnT::VlineTrack(pos,tooltip = data.frame(Position = start(pos), Color = colors),
color = colors, label = NULL)
TnTBoard(vltrack)
```
<br/> <br/>
## Session Info
```{r}
sessionInfo()
```