Description Usage Arguments Details Examples
Get Images of Pathways, Compounds, etc, from KEGG
1 | keggGetImage(keywords, path = getwd(), display = FALSE)
|
keywords |
string, or character array. Corresponding IDs. |
path |
string. The path to save images. |
dispaly |
logical. Display images in R window or not. |
Using '+' to add multiple IDs in keywords string.
Images of pathway won't dispaly in R window, causing it's usually too large.
They will be saved in path /image
by default. Of course, all images from
keggGetImage()
will be saved.
1 2 3 4 5 6 7 8 9 10 | # retrieves the png image file of a pathway map
keggGetImage('hsa05130')
# retrieves the gif image file of a compound
keggGetImage('C00002')
# retrieves image files of multiple pathway maps or compoumnds.
keggGetImage(c('hsa05130', 'C00002'))
# same as above
keggGetImage('hsa05130+C00002')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.