Learn R Programming

immcp (version 1.0.3)

plot_graph: Plot Disease-Drug Network

Description

Plot Disease-Drug Network

Usage

plot_graph(
  graph,
  drug,
  disease,
  Isolated = TRUE,
  vis = "visNetwork",
  color = c(drug = "#cca4e3", herb = "#ff461f", compound = "#ffc773", target =
    "#70f3ff"),
  width = 1,
  size = 20,
  ...
)

# S4 method for BasicData plot_graph( graph, drug, disease, Isolated = TRUE, vis = "visNetwork", color = c(drug = "#cca4e3", herb = "#ff461f", compound = "#ffc773", target = "#70f3ff"), width = 1, size = 20, ... )

# S4 method for igraph plot_graph( graph, drug, disease, Isolated = TRUE, vis = "visNetwork", color = c(drug = "#cca4e3", herb = "#ff461f", compound = "#ffc773", target = "#70f3ff"), width = 1, size = 20, ... )

# S4 method for HerbResult plot_graph( graph, drug, disease, Isolated = TRUE, vis = "visNetwork", color = c(drug = "#cca4e3", herb = "#ff461f", compound = "#ffc773", target = "#70f3ff"), width = 1, size = 20, ... )

Arguments

graph

graph.

drug

drug.

disease

disease.

Isolated

Whether to delect Isolated nodes.

vis

one of "igraph", "visNetwork" and "shiny".

color

Nodes Color

width

Edges width

size

Nodes size

...

Arguments

Value

Returns NULL, invisibly.