Draw Outline for A Data Track

Share:

Description

Draw outline with subtracks for one data track. RCircos core components and graphic device must be initialized first. This function is mainly for internal use.

Usage

1
2
RCircos.Track.Outline(inside.pos=NULL, outside.pos=NULL,
    num.layers=1, chrom.list=NULL, track.colors=NULL)

Arguments

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.

num.layers

Non-negative integer, number of sub-tracks lines. 0 for no sub-track line.

chrom.list

List of chromosome names for which outline will be drawn.

track.colors

Vector of color names for outline of each chromosome.

Author(s)

Henry Zhang

Examples

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

RCircos.Set.Core.Components(
	cyto.info=UCSC.HG19.Human.CytoBandIdeogram, 
	chr.exclude=c("chrX", "chrY"), 
	tracks.inside=10, tracks.outside=5) 
RCircos.Set.Plot.Area()
RCircos.Chromosome.Ideogram.Plot()

locations <- RCircos.Track.Positions(side="in", track.num=1);  
out.pos <- locations[1];
in.pos  <- locations[2];
subtracks <- 5;
RCircos.Track.Outline(inside.pos=locations[2], 
	outside.pos=locations[1], num.layers=5,
	chrom.list=NULL, track.colors=NULL) 

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.