plot_ct: Plot subnetwork identified using the compute_crosstalk...

View source: R/plot.R

plot_ctR 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 compute_crosstalk

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)


DavisWeaver/crosstalkr documentation built on May 6, 2024, 6:09 p.m.