Learn R Programming

DeSciDe (version 1.0.2)

plot_string_network: Plot STRING Network

Description

Plot STRING network interactions using STRINGdb.

Usage

plot_string_network(
  string_db,
  string_ids,
  file_directory = NULL,
  export = FALSE
)

Value

Invisibly returns NULL.

Arguments

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab