Skip to content

Commit

Permalink
ggplot2::layer
Browse files Browse the repository at this point in the history
  • Loading branch information
rempsyc committed Mar 9, 2024
1 parent 1203d99 commit 758eb99
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ export(waffle_continent_journal)
export(waffle_country)
export(waffle_country_journal)
importFrom(dplyr,"%>%")
importFrom(ggplot2,layer)
importFrom(rlang,.data)
2 changes: 1 addition & 1 deletion R/waffle_country.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
#' setwd(.old_wd)
#' }
#' @importFrom rlang .data
#' @importFrom ggplot2 layer
#' @export
waffle_country <- function(data) {
insight::check_if_installed(c("ggflags", "ggplot2", "RColorBrewer"))
layer <- ggplot2::layer
. <- NULL
x <- data %>%
dplyr::mutate(missing = sum(is.na(.data$country)) / dplyr::n()) %>%
Expand Down
Binary file modified data/journal_field.rda
Binary file not shown.

0 comments on commit 758eb99

Please sign in to comment.