addDBLayer | R Documentation |
Add a drug layer to a mully graph
addDBLayer(g, data, drugList)
g |
The mully graph |
data |
The dataframe containing the parsed information of DrugBank. This argument can be obtained using the function loadDBXML(DrugBankFile) |
drugList |
The list of DrugBank Ids of the drugs to be added. This argument can be either a string (one drug) or a list of strings (multiple drugs) |
A mully graph with the added drug layer
## Not run:
data=readDBXML(DBXMLFilePath)
g=mully("DrugBank",direct=T)
g=addDBLayer(g,data,c("DB00001","DB06605"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.