plot_literature_graph: #'plot_literature_graph

Description Usage Arguments Value Examples

View source: R/plot_literature_score_graph.R

Description

Plot a graph inspired in CEMiTool's graphs

Usage

1
2
plot_literature_graph(plot_counts, name, color = "#B30000FF",
  max_number_of_labels = 10)

Arguments

plot_counts

The dataframe returned from the get_literature_score function

name

The name of the plot.

color

The color of the plot. Defaults to a shade of red ("#B30000FF").

max_number_of_labels

The max number of gene labels to show. Defaults to 10.

Value

A ploty/ggplot2 object is either returned or directly plotted

Examples

1
2
3
4
5
 gene <- c('CD4','CD14', "AIF1", "ACVR1", "CDY2A")
 terms_of_interest <- c("CD4 T cell", "CD14+ Monocyte")
 literature_counts <- get_literature_score(gene, terms_of_interest)
  pl <- plot_literature_graph(literature_counts, name = 'test')
  pl

lubianat/PubScore documentation built on Dec. 14, 2019, 10:24 p.m.