Learn R Programming

VanillaICE (version 1.34.0)

IdiogramParams-class: Paramater class for plotting idiograms

Description

Paramater class for plotting idiograms

Usage

"show"(object)

Arguments

object
an IdiogramParam object

Slots

seqnames
length-one character vector providing chromosome name
seqlengths
length-one numeric vector indicating size of chromosome
unit
character string indicating unit for genomic position (default is 'kb')
genome
character string indicating genome build
box
a list of parameters for plotting the box around the part of the idiogram that is plotted.

Examples

Run this code
if(require(BSgenome.Hsapiens.UCSC.hg18) && require(grid)){
   si <- seqinfo(BSgenome.Hsapiens.UCSC.hg18)
   iparam <- IdiogramParams(seqnames="chr1",
                            genome="hg18",
                            seqlengths=seqlengths(si)["chr1"],
                            box=list(xlim=c(20e6L, 25e6L), color="blue", lwd=2))
   iparam
   idiogram <- plot(iparam)
   vp <- viewport(x=0.05, y=0.8, width=unit(0.9, "npc"), height=unit(0.2, "npc"),
                  name="vp1", just=c("left", "bottom"))
   grid.newpage()
   pushViewport(vp)
   print(idiogram, vp=vp, newpage=FALSE)
}

Run the code above in your browser using DataLab