Description Usage Arguments Value Author(s) Examples
Plots an individual DMR as found by dmrcate
.
1 2 3 4 |
dmrcoutput |
An object of class |
dmr |
Row index of |
betas |
Matrix of beta values for plotting, with unique Illumina probe IDs as rownames. |
phen.col |
Vector of colors denoting phenotypes. Should be length
|
annotation |
A vector describing the type of annotation from which plots are
derived. Identical context to |
samps |
Vector of samples to be plotted, corresponding to columns of
|
toscale |
|
plotmedians |
Logical denoting whether group medians will be plotted. Groups are derived from |
... |
Extra arguments passed to |
A plot to the current device. Square points along the top correspond to gene annotation; colours are as follows:
TSS1500: Light green
TSS200: Dark green
Gene Body: Red
1st Exon: Magenta
5'UTR: Dark Blue
3'UTR: Cyan
Tim J. Peters <Tim.Peters@csiro.au>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
data(dmrcatedata)
myMs <- logit2(myBetas)
myMs.noSNPs <- rmSNPandCH(myMs, dist=2, mafcut=0.05)
patient <- factor(sub("-.*", "", colnames(myMs)))
type <- factor(sub(".*-", "", colnames(myMs)))
design <- model.matrix(~patient + type)
myannotation <- cpg.annotate(myMs.noSNPs, analysis.type="differential",
design=design, coef=39)
dmrcoutput <- dmrcate(myannotation, lambda=1000)
phen.col <- c(rep("orange", 38), rep("blue", 38))
DMR.plot(dmrcoutput=dmrcoutput, dmr=1, betas=myBetas, phen.col=phen.col,
pch=16, toscale=TRUE, plotmedians=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.