plot_literature_graph {PubScore} | R Documentation |
Plot a graph inspired in CEMiTool's graphs
plot_literature_graph( plot_counts, name, color = "#B30000FF", max_number_of_labels = 10 )
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. |
A ploty/ggplot2 object is either returned or directly plotted
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