barcodeplot: Barcode Plot

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Plot positions of one or two gene sets in a ranked list of statistics.

Usage

1
2
barcodeplot(statistics,index,index2=NULL,labels=c("Group 1 (highest statistic)","Group 2 (lowest statistic)"),
            quantiles=c(-1,1),col.bars=NULL,offset.bars=!is.null(index2), ...)

Arguments

index

index vector for the gene set. This can be a vector of indices, or a logical vector of the same length as statistics or, in general, any vector such that statistic[index] gives the statistic values for the gene set to be tested.

index2

index vector for a second gene set. Usually used to specify down-regulated genes when index is used for up-regulated genes.vector specifying the elements of statistic in the test group.

statistics

numeric vector giving the values of statistics to rank genes by.

labels

character vector of labels for the two groups of RNA samples that are being compared by the statistics. First labe is associated with high statistics and is displayed at the left end of the plot. Second label is associated with low or negative statistics and is displayed at the right end of the plot.

quantiles

numeric vector of length 2, giving cutoff values for statistics considered small or large respectively. Used to color the rectangle of the barcodeplot.

col.bars

character vector giving colors for the bars on the barcodeplot. Defaults to "black" for one set or c("red","blue") for two sets.

offset.bars

logical. When there are two sets, bars for the first set are normally offset up and and bars for the second set are offset down from the rectangle of the barcodeplot.

...

other arguments are passed to plot.

Details

Rank statistics left to right from largest to smallest, and show positions of one or two specified subsets. This plot is typically used in conjunction with gene set tests. It first appeared in the literature in Lim et al (2009). It was inspired by the set location plot of Subramanian et al (2005).

Value

No value is returned but a plot is produced as a side effect.

Author(s)

Gordon Smyth and Di Wu

References

Lim E, Vaillant F, Wu D, Forrest NC, Pal B, Hart AH, Asselin-Labat ML, Gyorki DE, Ward T, Partanen A, Feleppa F, Huschtscha LI, Thorne HJ; kConFab; Fox SB, Yan M, French JD, Brown MA, Smyth GK, Visvader JE, Lindeman GJ (2009). Aberrant luminal progenitors as the candidate target population for basal tumor development in BRCA1 mutation carriers. Nat Med, 15, 907-913..

Subramanian A, Tamayo P, Mootha VK, Mukherjee S, Ebert BL, Gillette MA, Paulovich A, Pomeroy SL, Golub TR, Lander ES, Mesirov JP (2005). Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles. Proc Natl Acad Sci USA, 102, 15545-15550.

See Also

camera, wilcox.test

Examples

1
2
3
4
5
6
7
stat <- rnorm(100)
sel <- 1:10
stat[sel] <- stat[sel]+1
barcodeplot(stat,sel)
sel2 <- 11:20
stat[sel2] <- stat[sel2]-1
barcodeplot(stat,sel,sel2)

richierocks/limma2 documentation built on May 27, 2019, 8:47 a.m.