View source: R/DesignContrast.R
DesignContrast | R Documentation |
Contrast a DesignContrast object
DesignContrast(
designMatrix,
contrastMatrix = NULL,
groups = NULL,
dispLevels = NULL,
contrastAnnotation = NULL
)
designMatrix |
A design matrix |
contrastMatrix |
A contrast matrix. If null, no comparison can be done. |
groups |
A factor vector of the same length as the number of columns of the design matrix.
If missing, |
dispLevels |
A character vector of the same length as the number of levels encoded by |
contrastAnnotation |
A data.frame or NULL, annotating contrasts |
A DesignContrast object
myFac <- gl(3,3, labels=c("baseline", "treat1", "treat2"))
myDesign <- model.matrix(~myFac)
colnames(myDesign) <- c("baseline", "treat1", "treat2")
myContrast <- limma::makeContrasts(contrasts=c("treat1", "treat2"), levels=myDesign)
DesignContrast(myDesign, myContrast, groups=myFac)
DesignContrast(myDesign, myContrast, groups=myFac, dispLevels=c("C", "T1", "T2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.