Learn R Programming

RCircos (version 1.2.2)

RCircos.Histogram.Plot: Plot Histogram for One Data Track

Description

Draw one track of histogram. RCircos core components and graphic device must be initialized before drawing.

Usage

RCircos.Histogram.Plot(hist.data=NULL, data.col=4,
    track.num=NULL, side=c("in", "out"), 
    min.value=NULL, max.value=NULL, inside.pos=NULL, 
    outside.pos=NULL, genomic.columns=3, is.sorted=TRUE)

Arguments

hist.data

A data frame with the first three columns as chromosome names, start position and end position of each data point followed by data values for one or more samples.

data.col

Non-negative integer, representing the ordinal number of the column in input data that contains the data to be plotted.

track.num

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

side

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

min.value

Numeric, minimum value for histogram

max.value

Numeric, maximum value for histogram

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 integer, total number of columns for genomic position in each row. Must be either 3 or 2.

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);
data(RCircos.Histogram.Data);

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()

RCircos.Histogram.Plot(RCircos.Histogram.Data, 
	data.col=4, track.num=1, side="in")
RCircos.Histogram.Plot(RCircos.Histogram.Data, 
	data.col=4, side="in", inside.pos=1.7, 
	outside.pos=1.8)
# }

Run the code above in your browser using DataLab