Compare count of miRNA names between different topics.

compare_mir_count(
  df,
  mir,
  topic = NULL,
  normalize = TRUE,
  col.topic = Topic,
  col.mir = miRNA,
  col.pmid = PMID,
  title = NULL
)

Arguments

df

Data frame containing columns for miRNA names, topics, and PubMed-IDs.

mir

Character vector. Vector specifying which miRNA names to compare.

topic

Character vector. Optional. Vector specifying which topics to compare.

normalize

Boolean. If normalize = TRUE, plot the proportion of abstracts mentioning a miRNA name compared to all abstracts in a topic. If normalize = FALSE, plot the absolute number of abstracts mentioning a miRNA in a topic.

col.topic

Symbol. Column containing topic names.

col.mir

Symbol. Column containing miRNA names.

col.pmid

Symbol. Column containing PubMed-IDs.

title

String. Plot title.

Value

Bar plot comparing the count of miRNA names between different topics.

Details

Compare count of miRNA names between different topics by plotting the number of abstracts mentioning the miRNA in a topic. This count can either be normalized, thus plotting the proportion of abstracts mentioning a miRNA name compared to all abstracts of a topic, or it can be not normalized, thus plotting the absolute number of abstracts mentioning a miRNA per topic.

See also