plot_network: plot_network

Description Usage Arguments Value Author(s)

Description

Drug target or pathway network visualization

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
plot_network(
  x,
  Drug,
  node_color = c("lightblue", "orange", "red", "green"),
  layout = "layout_nicely",
  manipulation = FALSE,
  ...
)

## S4 method for signature '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 signature '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 signature '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

Author(s)

Yuanlong Hu


immcp documentation built on Nov. 14, 2020, 5:09 p.m.