Skip to contents

Generate table of journal paper percentages, by continent and year

Usage

scatter_country_year(
  data,
  method = "lm",
  ymin = 0,
  ymax = 100,
  yby = 20,
  plotly = TRUE,
  citation = NULL,
  citation_size = 15,
  text_size = NULL,
  height = NULL,
  data_formatted = NULL,
  ...
)

Arguments

data

The processed dataframe of data

method

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

ymin

Minimum value for y-axis

ymax

Maximum value for y-axis

yby

Tick increments for y-axis

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.

text_size

Size of the element_text ggplot2 element

height

Height argument of plotly::ggplotly

data_formatted

To save time, it is possible to reuse the dataframe used for this function that is generated by table_country_year().

...

Further arguments passed to rempsyc::nice_scatter

Examples

if (FALSE) { # \dontrun{
data <- fetch_openalex_pubs(journal_name = "Collabra", pages = 1)
data <- clean_journals_continents(data)
suppressWarnings(scatter_country_year(data))
} # }