Learn R Programming

immcp (version 0.9.2)

plot_network: plot_network

Description

Drug target or pathway network visualization

Usage

plot_network(
  x,
  Drug,
  node_color = c("lightblue", "orange", "red", "green"),
  layout = "layout_nicely",
  manipulation = FALSE,
  ...
)

# S4 method for ScoreResultNet plot_network( x, Drug, node_color = c("lightblue", "orange", "red", "green"), layout = "layout_nicely", manipulation = FALSE, node_type = "target", background = "drug", neighbor = FALSE )

# S4 method for ScoreFP plot_network( x, Drug, node_type = "herb-compound-target", node_color = c("lightblue", "orange", "red", "green"), layout = "layout_nicely", manipulation = FALSE, highlight = NULL, width = FALSE )

# S4 method for ScoreResultFP plot_network( x, Drug, node_type = "herb-compound-target", node_color = c("lightblue", "orange", "red", "green"), layout = "layout_nicely", manipulation = FALSE, highlight = NULL, width = FALSE )

plot_network.ScoreResultNet( x, Drug, node_color = c("lightblue", "orange", "red", "green"), layout = "layout_nicely", manipulation = FALSE, node_type = "target", background = "drug", neighbor = FALSE )

plot_network.ScoreFP( x, Drug, node_type = "herb-compound-pathway", node_color = c("lightblue", "orange", "red", "green"), layout = "layout_nicely", manipulation = FALSE, highlight = NULL, width = FALSE )

Arguments

x

ScoreFP or ScoreResultNet object

Drug

The name of drug.

node_color

The node color.

layout

Character Name of network layout function to use. Default to "layout_nicely".

manipulation

Whether to edit the network.

...

additional parameters

node_type

network type. one of "herb-target","herb-compound-target" and "target".

background

one of "drug" or "disease"

neighbor

logical.

highlight

A character vector of gene.

width

A logical. The number of overlapping genes between the two pathways is used as the width of the edges.

Value

visNetwork object