RCircos.Set.Zoom.Plot.Positions: Set Position for Zoom-in Plot

Description Usage Arguments Value Author(s) Examples

View source: R/RCircosZoomPlot.R

Description

Set plot position for zooming-in plot by selecting index of default plot positions. The zoomed plot will be aligned with the original plot position such as gene position or a cytoband. The zoom area was defined as fraction of circle circumference, default is 1/8.

Usage

1
2
RCircos.Set.Zoom.Plot.Positions(zoom.info=NULL, total.genes=11,
    area.length=0.25, fixed.width=FALSE, gene.width=NULL)

Arguments

zoom.info

A vector with chromosome name, start and end position to be zoomed.

total.genes

Non-negative integer from 1 ~ maximum number of genes to be plotted. The maximum number of genes is calculated based on track height and will be adjusted inside the function.

area.length

Non-negative numeric, for better layout, it must be smaller than or equal to 1/4 (quarter of the circumstance).

fixed.width

Logic, if the plot witdth for each data point is fixed or not.

gene.width

Non-negative integer, number of units for gene width.

Value

Numeric vector for index of RCircos.Base.Position

Author(s)

Henry Zhang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## 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) 

zoom.info <- c("chr1", 10000, 50000)
zoom.pos <- RCircos.Set.Zoom.Plot.Positions(zoom.info)

## End(Not run)

Example output

RCircos.Core.Components initialized.
Type ?RCircos.Reset.Plot.Parameters to see how to modify the core components.

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