plot_network: Network graph of ImSig genes

Description Usage Arguments Value See Also Examples

View source: R/plot_network.R

Description

A Network visualization displays undirected graph structures and highlights the relationships between entities. The nodes are ImSig genes and the edges represent the correlation between them. The nodes are coloured based on cell type. Try using a correlation cut-off of '0' to get a complete picture.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_network(
  exp,
  r = 0.6,
  pt.cex = 2,
  cex = 1,
  inset = 0,
  x.intersp = 2,
  vertex.size = 3,
  vertex.label = NA,
  layout = layout_with_fr
)

Arguments

exp

Dataframe of transcriptomic data (natural scale) containing genes as rows and samples as columns. Note: Gene names should be set as row names and duplicates are not allowed. Missing values are not allowed within the expression matrix. Check example- head(example_data): example_data.

r

Use a value between 0 and 1. Default is 0.6. This is a user defined correlation cut-off to perform feature selection (feature_select). Feature selection aids to enrich the prediction of relative abundance of immune cells by filtering off poorly correlated ImSig genes. To get an idea of what cut-off to use check the results of (gene_stat) and choose a cut-off that displays high median correlation and maintains a high proportion of genes after feature selection.

pt.cex

expansion factor(s) for the points.

cex

character expansion factor relative to current par("cex"). Used for text, and provides the default for pt.cex.

inset

inset distance(s) from the margins as a fraction of the plot region when legend is placed by keyword.

x.intersp

character interspacing factor for horizontal (x) spacing.

vertex.size

Node size of network graph

vertex.label

Add gene names to the network graph. Default set to NA.

layout

Layout algorithm to be used for building network. Default set to force-directed layout algorithm by Fruchterman and Reingold. Read documentation of 'igraph' for other available algorithms.

Value

Network graph

See Also

feature_select

Examples

1
plot_network (exp = example_data, r = 0.7)

imsig documentation built on Jan. 13, 2021, 9:51 p.m.