kegg_picture {OmnipathR} | R Documentation

## Download a pathway diagram as a picture

### Description

Downloads a KEGG Pathway diagram as a PNG image.

### Usage

    kegg_picture(pathway_id, path = NULL)

### Arguments

`pathway_id` | Character: a KEGG Pathway identifier, e.g. "hsa04710". For a complete list of IDs see `kegg_pathway_list`.
`path` | Character: save the image to this path. If `NULL`, the image will be saved in the current directory under the name `<pathway_id>.png`.

### Value

Invisibly returns the path to the downloaded file.

### See Also

`kegg_pathway_list`

- `kegg_pathway_list`

- `kegg_open`

- `kegg_info`

### Examples

    kegg_picture('hsa04710')
    kegg_picture('hsa04710', path = 'foo/bar')
    kegg_picture('hsa04710', path = 'foo/bar/circadian.png')

[Package OmnipathR version 3.2.0 Index]