Skip to contents

Generate table of journal paper percentages, by continent and year

Usage

scatter_country_year(
  data,
  method = "lm",
  plotly = TRUE,
  citation = NULL,
  citation_size = 15,
  ...
)

Arguments

data

The processed dataframe of data

method

Which method to use for the regression line, either "lm" (default) or "loess".

plotly

Logical, whether to use plotly for dynamic data visualization.

citation

Optionally, a citation to add as a footer.

citation_size

Font size of the citation.

...

Further arguments passed to rempsyc::nice_scatter

Examples

# \dontshow{
.old_wd <- setwd(tempdir())
# }
if (FALSE) {
pubmed_query_string <- paste(
  "passion [Title/Abstract]",
  "AND Dualistic Model of Passion [Text Word]"
)

save_process_pubmed_batch(
  pubmed_query_string,
  year_low = 2018,
  year_high = 2020
)
data <- read_bind_all_data()
suppressWarnings(scatter_country_year(data))
}
# \dontshow{
unlink("easyPubMed_data_01.txt")
setwd(.old_wd)
# }