Learn R Programming

DeSciDe (version 1.0.2)

plot_connectivity_precedence: Plot Connectivity vs. Precedence

Description

Create a scatter plot of Connectivity Rank vs. PubMed Rank.

Usage

plot_connectivity_precedence(
  combined_summary,
  file_directory = NULL,
  export = FALSE
)

Value

Invisibly returns a ggplot object.

Arguments

combined_summary

Data frame with combined summary including categories.

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
combined_data <- data.frame(Gene = c("Gene1", "Gene2"), Connectivity_Rank = c(1, 2),
                            PubMed_Rank = c(2, 1),
                            Category = c("High Connectivity - High Precedence", "Other"))
plot_connectivity_precedence(combined_data, export = FALSE)

Run the code above in your browser using DataLab