Description Usage Arguments Author(s) References Examples
gdPlot is the main plotting function of the GenomeGraphs package. A collection of objects are given as a list and these will then be plotten in the order given.
1 2 |
gdObjects |
This is either a list of |
minBase |
|
maxBase |
|
overlays |
|
labelColor |
Draw the labels with the given colors. |
labelCex |
Character expansion factor. |
labelRot |
Rotate the track labels |
Steffen Durinck and James Bullard
http://www.stat.berkeley.edu/~steffen/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data("exampleData", package="GenomeGraphs")
minbase = min(probestart)
maxbase = max(probestart)
mart = useMart("ensembl", dataset="hsapiens_gene_ensembl")
genesplus = new("GeneRegion", start = minbase, end = maxbase, strand = "+", chromosome = "3", biomart=mart)
genesmin = new("GeneRegion", start = minbase, end = maxbase, strand = "-", chromosome = "3", biomart=mart)
seg <- new("Segmentation", segments = segments[[1]],
segmentStart = segStart[[1]], segmentEnd = segEnd[[1]],
dp = DisplayPars(color = "dodgerblue2", lwd=2,lty = "dashed"))
cop <- new("GenericArray", intensity = cn, probeStart = probestart,
trackOverlay = seg, dp = DisplayPars(size=3, color = "seagreen", type="dot"))
ideog = new("Ideogram", chromosome = "3")
expres = new("GenericArray", intensity = intensity, probeStart = exonProbePos,
dp = DisplayPars(color="darkred", type="point"))
genomeAxis = new("GenomeAxis", add53 = TRUE, add35=TRUE)
gdPlot(list(ideog,expres,cop,genesplus,genomeAxis,genesmin), minBase = minbase, maxBase =maxbase)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.