From 5de0449dc5be236c242f3559fbd8ea9935b887d8 Mon Sep 17 00:00:00 2001 From: Thomas Knecht Date: Mon, 7 Oct 2019 11:53:06 +0200 Subject: [PATCH] Add package spezifications --- R/position-nudgestack.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/position-nudgestack.R b/R/position-nudgestack.R index 85d9f0cbc9..84d110970d 100644 --- a/R/position-nudgestack.R +++ b/R/position-nudgestack.R @@ -17,9 +17,9 @@ #' #' ESM_prep <- ESM %>% #' dplyr::mutate(time = as.Date(paste0(format(time, "%Y-%m"), "-1"))) %>% -#' group_by(id, time) %>% -#' summarize(value = mean(value)) %>% -#' filter(time >= "1995-01-01" & time < "1998-01-01") +#' dplyr::group_by(id, time) %>% +#' dplyr::summarize(value = mean(value)) %>% +#' dplyr::filter(time >= "1995-01-01" & time < "1998-01-01") #' #' ggplot(data = ESM_prep, mapping = aes(x = time, y = value, fill = id)) + #' geom_col(position = position_nudgestack(x = 15))