View source: R/visualization.R
color_kegg_pathway | R Documentation |
Color hsa KEGG pathway
color_kegg_pathway(
pw_id,
change_vec,
scale_vals = TRUE,
node_cols = NULL,
quiet = TRUE
)
pw_id |
hsa KEGG pathway id (e.g. hsa05012) |
change_vec |
vector of change values, names should be hsa KEGG gene ids |
scale_vals |
should change values be scaled? (default = |
node_cols |
low, middle and high color values for coloring the pathway nodes
(default = |
quiet |
If |
list containing:
file_path: path to colored hsa KEGG pathway diagram
all_key_cols: colors used for each change value bin
all_brks: breaks used for separating change values into bins
## Not run:
pw_id <- 'hsa00010'
change_vec <- c(-2, 4, 6)
names(change_vec) <- c('hsa:2821', 'hsa:226', 'hsa:229')
result <- pathfindR:::color_kegg_pathway(pw_id, change_vec)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.