plotDruglink {DrugSim2DR} | R Documentation |
plotDruglink
Description
The function "plotDruglink" is used to plot a bipartite network of drugs and shared molecular functions.
Usage
plotDruglink(drug1,drug2,i = 5,color_MF = "#43AAEF",color_drug = "#F7525B",
layout_type = "circle")
Arguments
drug1 |
The drugbank ID of drug1. |
drug2 |
The drugbank ID of drug2. |
i |
Specifies the number of outputs molecular functions, which is 5 by default. |
color_MF |
Defines the color of MF nodes in the network. |
color_drug |
Defines the color of drug nodes in the network. |
layout_type |
layout_type used to set the appropriate arrangement, there is an option to choose from "circle","dh",and "sugiyama". |
Value
A bipartite network of drugs and shared molecular functions.
Examples
# Set drug1
drug1<-"DB02721"
# Set drug2
drug2<-"DB01213"
# Run the function
library(igraph)
plotDruglink(drug1,drug2,i = 5)
[Package DrugSim2DR version 0.1.1 Index]