plot_ct {crosstalkr} | R Documentation |
Plot subnetwork identified using the compute_crosstalk function
Description
Convenience function for plotting crosstalkers - if you want to make more
customized/dynamic figures, there are lots of packages that can facilitate that,
including: visnetwork
, ggraph
, and even the base R plotting library
Usage
plot_ct(crosstalk_df, g, label_prop = 0.1, prop_keep = 0.4)
Arguments
crosstalk_df |
a dataframe containing the results of |
g |
igraph network object. |
label_prop |
Proportion of nodes to label - based on degree |
prop_keep |
How many proteins do we want to keep in the visualization (as a proportion of total) - subsets on top x proteins ranked by affinity score |
Value
NULL, draws the identified subgraph to device\
Examples
## Not run:
ct_df <- compute_crosstalk(c("EGFR", "KRAS"))
g <- prep_biogrid()
plot_ct(ct_df, g = g)
## End(Not run)
[Package crosstalkr version 1.0.5 Index]