plotKEGG | R Documentation |
Create a KEGG pathway diagram with DEG data overlay.
plotKEGG( keggData, pathway, species = "Mouse", inputDir = "KEGG Inputs/", plotName = NULL, geneCols = list(low = "cyan", mid = "white", high = "firebrick"), cpdCols = list(low = "blue", mid = "gray", high = "yellow") )
keggData |
A dataframe containing MGI symbol-formatted gene IDs, |
pathway |
A string giving the pathway ID for the pathway of interest, in the format "00001". No species code is required. |
species |
A string specifying the species to use. Currently, only "Mouse" is supported. |
inputDir |
A path to a directory where pathview can download the KEGG files. Directory must exist before running this! |
plotName |
An optional string to append to the output image file. Useful when vectorizing so each subsequent output doesn't overwrite the previous one. |
geneCols |
A 3-length list giving the low, medium, and high colour values to map to gene expression. Please keep them in that order, names are optional. |
cpdCols |
As geneCols, but for compound values |
Nothing - instead, writes the output png to the working directory. Would love to have it not do that but this seems to be a feature of pathview.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.