Learn R Programming

SubtypeDrug (version 0.1.9)

getDrugStructure: Get drug chemical structure diagram data

Description

`getDrugStructure()` outputs the chemical structure graph data of the drug or compound based on the input drug label by the user. The results can be visualized by the `plot` function.

Usage

getDrugStructure(drug.label = "", main = "", sub = "")

Value

A sdfset object.

Arguments

drug.label

A character string of drug label to determine which drug to use for visualization.

main

An overall title for the chemical structure graph.

sub

A sub title for the chemical structure graph.

Author

Xudong Han, Junwei Han, Chonghui Liu

Details

getDrugStructure

Examples

Run this code
require(rvest)
require(ChemmineR)
# Plot the chemical structure of drug pirenperone.
# Chem_str<-getDrugStructure(drug.label="pirenperone.")
# plot(Chem_str)

Run the code above in your browser using DataLab