Description Usage Arguments Value Examples
This function takes a single-column data frame, which is a
single-column subset of the ranked matrix data generated using
rankGenes()
function, and the gene sets of interest as inputs. It plots
the density of ranks for genes in the gene set and overlays a barcode plot
of these ranks. Ranks are normalized by dividing them by the maximum rank.
Densities are estimated using KDE.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | plotRankDensity(
rankData,
upSet,
downSet = NULL,
isInteractive = FALSE,
textSize = 1.5
)
## S4 method for signature 'ANY,vector,missing'
plotRankDensity(
rankData,
upSet,
downSet = NULL,
isInteractive = FALSE,
textSize = 1.5
)
## S4 method for signature 'ANY,GeneSet,missing'
plotRankDensity(
rankData,
upSet,
downSet = NULL,
isInteractive = FALSE,
textSize = 1.5
)
## S4 method for signature 'ANY,vector,vector'
plotRankDensity(
rankData,
upSet,
downSet = NULL,
isInteractive = FALSE,
textSize = 1.5
)
## S4 method for signature 'ANY,GeneSet,GeneSet'
plotRankDensity(
rankData,
upSet,
downSet = NULL,
isInteractive = FALSE,
textSize = 1.5
)
|
rankData |
one column of the ranked gene expression matrix obtained from
the |
upSet |
GeneSet object or a vector of gene Ids, up-regulated gene set |
downSet |
GeneSet object or a vector of gene Ids, down-regulated gene set |
isInteractive |
Boolean, determine whether the returned plot is interactive |
textSize |
numberic, set the size of text on the plot |
A ggplot object (or a plotly object) with a rank density plot overlayed with a barcode plot
1 2 | ranked <- rankGenes(toy_expr_se)
plotRankDensity(ranked[,2,drop = FALSE], upSet = toy_gs_up)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.