View source: R/stringdb_functions.R
plot_string_network | R Documentation |
Plot STRING network interactions using STRINGdb.
plot_string_network(
string_db,
string_ids,
file_directory = NULL,
export = FALSE
)
string_db |
A STRINGdb object. |
string_ids |
A list of STRING IDs. |
file_directory |
Directory for saving the output plot. Defaults to NULL. |
export |
Logical indicating whether to export the plot. Defaults to FALSE. |
Invisibly returns NULL.
library(STRINGdb)
string_db <- STRINGdb$new(species = 9606)
string_ids <- c("9606.ENSP00000269305", "9606.ENSP00000357940")
plot_string_network(string_db, string_ids, file_directory = tempdir(), export = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.