View source: R/RCircosPlotDataTracks.R
RCircos.Ribbon.Plot | R Documentation |
Draw various ribbons instead of lines with uniform thickness. The thickness of ribbons are relative to the size of the genomic regions to be linked.
RCircos.Ribbon.Plot(ribbon.data=NULL, track.num=NULL, by.chromosome=FALSE, twist=FALSE, start.pos=NULL, genomic.columns=3, is.sorted=TRUE)
ribbon.data |
A data frame with paired genomic positions in each row. The first three columns of each row are for chromosome name, start and end positions of one genomic position followed by three columns for chromosome name, start and end positions of the second genomic position. |
track.num |
Non negative-integer, representing the ordinal number of the plot track where the ribbons will start. |
by.chromosome |
Logic, If true, red color will be used for ribbons between positions of same chromosomes and blue color for ribbons between different chromosomes. Otherwise, different colors will be automatically assigned for each ribbon. |
twist |
Logic, TRUE for the ribbons with twisted shape and FALSE for no twist. |
start.pos |
Non-negative numeric, scale factor relative to chromosome ideogram position. Must be smaller than 1. |
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. |
Henry Zhang
## Not run: library(RCircos) data(UCSC.HG19.Human.CytoBandIdeogram); data(RCircos.Link.Data); data(RCircos.Ribbon.Data); cyto.info <- UCSC.HG19.Human.CytoBandIdeogram chr.exclude <- c("chrX", "chrY") 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() RCircos.Link.Plot(RCircos.Link.Data, track.num=4, twist=TRUE) RCircos.Ribbon.Plot(RCircos.Ribbon.Data, track.num=4, twist=TRUE, by.chromosome=FALSE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.