RCircos.Area.Highlight: Highlight PLot Area Cross One or More Tracks

Description Usage Arguments Author(s) Examples

View source: R/RCircosPlotDataTracks.R

Description

Highlight a plot area with transparent color cross one or more tracks. RCircos core components and graphic device must be initialized first.

Usage

1
2
3
RCircos.Area.Highlight(highlight.area=NULL, track.num=NULL,  
    side=c("in", "out"), hightlight.color=rgb(0.5, 0.5, 0, 0.5),  
    inside.pos=NULL, outside.pos=NULL)

Arguments

highlight.area

Vector with chromosome name, start and end position to be highlighted.

track.num

Vector of non-negative integer, which track or track(s) to be highlighted.

side

Character vector, location relative to the ideogram, either "in" or "out".

hightlight.color

An RGB color definition, alpha value must be defined.

inside.pos

Non-negative numeric, inside position (relative to the centre of plot area) of the track.

outside.pos

Non-negative numeric, outside position (relative to the centre of plot area) of the track.

Author(s)

Henry Zhang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
library(RCircos)
data(UCSC.HG19.Human.CytoBandIdeogram)
data(RCircos.Gene.Label.Data)

RCircos.Set.Core.Components(UCSC.HG19.Human.CytoBandIdeogram,  
    chr.exclude=NULL, tracks.inside=10, tracks.outside=0)

RCircos.Set.Plot.Area()
RCircos.Chromosome.Ideogram.Plot()

highlight.area <- c("chr1", 100000, 200000)
RCircos.Area.Highlight(highlight.area=c("chr1", 100000, 200000),  
    track.num=c(1:3), side="in")
RCircos.Area.Highlight(highlight.areac("chr10", 100000, 200000),  
    inside.pos=1.5, outside.pos=2)  

## End(Not run)

RCircos documentation built on May 2, 2019, 5:51 a.m.