plot_graph-method: Plot Disease-Drug Network

plot_graphR Documentation

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 signature '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 signature '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 signature '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.

Author(s)

Yuanlong Hu


immcp documentation built on May 12, 2022, 9:05 a.m.