Description Usage Arguments Value Examples
View source: R/plot_literature_score_graph.R
Plot a graph inspired in CEMiTool's graphs
1 2 | 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
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.