Draws annual record counts over time from the output of scopus_trend().
Arguments
- x
A
scopus_trendobject fromscopus_trend().- ...
Currently unused, present for S3 consistency.
- object
A
scopus_trendobject (for theautoplot()method).
Value
A ggplot2::ggplot object. Needs the suggested package ggplot2.
Examples
# Drawn from the bundled corpus of real articles, which needs no key. That
# corpus is a complete harvest, so its rows per year are the publications
# per year its query returns.
by_year <- table(example_records$year)
tr <- tibble::tibble(
query = "TITLE-ABS-KEY(graphene supercapacitor)",
year = as.integer(names(by_year)),
n = as.numeric(by_year)
)
class(tr) <- c("scopus_trend", class(tr))
plot_scopus_trend(tr)
