Skip to content

Commit

Permalink
add default
Browse files Browse the repository at this point in the history
  • Loading branch information
rempsyc committed Apr 29, 2024
1 parent 6fec0e8 commit 913d1a6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion R/scatter_continent_year.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
#' @importFrom rlang .data
#' @export

scatter_continent_year <- function(data, method = "lm", plotly = TRUE, citation, citation_size = 15, ...) {
scatter_continent_year <- function(data,
method = "lm",
plotly = TRUE,
citation = NULL,
citation_size = 15,
...) {
insight::check_if_installed("RColorBrewer")
data <- data %>%
dplyr::mutate(missing = sum(is.na(.data$continent)) / dplyr::n()) %>%
Expand Down
7 changes: 6 additions & 1 deletion R/scatter_country_year.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
#' @importFrom rlang .data
#' @export

scatter_country_year <- function(data, method = "lm", plotly = TRUE, citation, citation_size = 15, ...) {
scatter_country_year <- function(data,
method = "lm",
plotly = TRUE,
citation = NULL,
citation_size = 15,
...) {
df_country_year_missing <- data %>%
dplyr::filter(is.na(.data$country)) %>%
dplyr::group_by(.data$year) %>%
Expand Down
2 changes: 1 addition & 1 deletion man/scatter_continent_year.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/scatter_country_year.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 913d1a6

Please sign in to comment.