This shiny app gets the number of articles returned by two Pubmed queries and draws either the counts or ratio throughout time.
Pubmed is a search engine supporting the search in the MEDLINE database of references and abstracts in the life sciences and biomedical fields.
This app uses the RISmed package to retrieve article counts.
The pubmed queries can be simply a list of keywords, or include field tags and other pubmed specific syntax (see https://pubmed.ncbi.nlm.nih.gov/help).
Given that ratios can be quite volatile, a minimal value for the denominator can be specified by the user for the data point to be displayed. This value is set to 10 by default.