plot_pwy | R Documentation |
Plot nodes most impacting a pathway as a network diagram with node color corresponding to z-score.
The most impactful nodes are inferred by assuming the input here is the same as
was used to calculate pathway significance. The feat.tab
is assumed to have all nodes to consider
for plotting. Including nodes with NA
stats allows these to be included in networks as a connector.
An annot.colnm
should have preferred labels for all nodes.
plot_pwy(
feat.tab,
G.pwy,
gr,
stat.colnm,
annot.colnm,
ntop = 7,
name = NULL,
colorbar.nm = stat.colnm,
alternative = c("two.sided", "greater", "less"),
repel = FALSE,
plot = TRUE,
seed = 0
)
feat.tab |
Matrix-like object for all analytes with row names as analyte names, which should
have some overlap with |
G.pwy |
Element of list object |
gr |
graph object of class |
stat.colnm |
Column name in |
annot.colnm |
Column name in |
ntop |
Number of top impactful analytes to plot, >=2. Their network neighbors may also be included. |
name |
Name of file to plot to. If |
colorbar.nm |
Title of color bar. |
alternative |
Alternative hypothesis; must be one of |
repel |
Logcal; use the repel functionality from ggrepel to avoid overlapping text? |
plot |
Logical; should plot be generated? |
seed |
Numeric seed value for reproducibility. |
Unmeasured nodes have stat of NA
and are drawn gray.
Invisibly, a list with tbl_graph
, a subclass of
igraph so every igraph method will work as expected. If plot=TRUE
, there
is a second element of the list, which is a ggplot
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.