Skip to contents

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.

Examples

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