# 1. Library TOmicsVis package
library(TOmicsVis)
# 2. Use example dataset
data(degs_stats)
head(degs_stats)
# 3. Default parameters
gene_rank_plot(degs_stats)
# 4. Set top_n = 5
gene_rank_plot(degs_stats, top_n = 5, palette = "PiYG")
# 5. Set genes_to_label = c("SELL","CCR7","KLRG1","IL7R")
gene_rank_plot(degs_stats, genes_to_label = c("SELL","CCR7","KLRG1","IL7R"), palette = "PuOr")
Run the code above in your browser using DataLab