Learn R Programming

COPDSexualDimorphism (version 1.3.0)

do.sdcd.boxplot: Represent sexual dimorphic data as boxplots.

Description

Stratify and plot data by gender and by disease status.

Usage

do.sdcd.boxplot(marker, data, copd.bool, male.bool, symbol = marker, filename = paste(marker,".pdf",sep=""), take.log = FALSE)

Arguments

marker
Character string representing the name of the marker (e.g. Ensembl gene, VMR) to plot.
data
Data to be plot. E.g. gene expression or percent methylation.
copd.bool
Boolean array corresponding to the COPD subject columns of data.
male.bool
Boolean array corresponding to the male subject columns of data.
symbol
Gene symbol associated with the marker.
filename
File name. If NA, display plot on screen.
take.log
Boolean. If true, plot in log scale.

References

Sathirapongsasuti JF, Glass K, Huttenhower C, Quackenbush J, DeMeo DL. Integrative Genomics of Sexual Dimorphism in COPD. (In Prep).

Examples

Run this code
	data(lgrc.sdcd.genes)
	data(lgrc.expr.meta)
	data(lgrc.expr)
	copd.bool = (expr.meta$diagmaj == "2-COPD/Emphysema")
	male.bool = (expr.meta$gender == "1-Male")
	do.sdcd.boxplot("ENSG00000182472", expr, copd.bool, male.bool, symbol="CAPN12", filename=NA)

Run the code above in your browser using DataLab