Learn R Programming

RCircos (version 1.2.2)

RCircos.Tile.Plot: Plot Tiles for One Data Track

Description

Draw one track of Tiles. RCircos core components and graphics device must be initialized before drawing.

Usage

RCircos.Tile.Plot(tile.data=NULL, track.num=NULL, 
    side= c("in", "out"), inside.pos=NULL, outside.pos=NULL, 
    genomic.columns=3, is.sorted=TRUE)

Arguments

tile.data

A data frame with the three columns as chromosome names, start position and end position of each data point. Other column(s) is optional.

track.num

Non-negative integer, representing the ordinal number of the plot track where the lines will be plotted.

side

Character vector, either "in" or "out", representing the position related to chromosome ideogram.

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.

genomic.columns

Non-negative interger. Must be 3 for tile plot.

is.sorted

Logic, whether the data is sorted by chromosome names and start positions.

Examples

Run this code
# 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=0) 
RCircos.Set.Plot.Area()
RCircos.Chromosome.Ideogram.Plot()

data(RCircos.Tile.Data);
RCircos.Tile.Plot(tile.data=RCircos.Tile.Data, 
	track.num=4, side="in")
# }

Run the code above in your browser using DataLab