diff --git a/DESCRIPTION b/DESCRIPTION index 251b0e146136931d7fedbacd24560a3443dd56d1..66fc484659b23ac7b0c92aeb7e30a36363cf60f6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -19,6 +19,7 @@ Imports: processx, purrr, readr, + stats, stringr, tibble, tidyr, @@ -26,8 +27,7 @@ Imports: plotly, utils Suggests: - datasets, - stats + datasets License: GPL-3 Encoding: UTF-8 LazyData: true diff --git a/NAMESPACE b/NAMESPACE index 87a589a308645da0f7bd9b3789381b065b05ee3e..dbe1374d529c871f0cb2b6912d52ba98af40da18 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -25,6 +25,7 @@ importFrom(dplyr,"%>%") importFrom(dplyr,arrange) importFrom(dplyr,bind_rows) importFrom(dplyr,case_when) +importFrom(dplyr,count) importFrom(dplyr,distinct) importFrom(dplyr,do) importFrom(dplyr,ends_with) @@ -88,6 +89,7 @@ importFrom(purrr,set_names) importFrom(readr,read_lines) importFrom(readr,write_delim) importFrom(readr,write_lines) +importFrom(stats,density) importFrom(stringr,str_remove) importFrom(stringr,str_replace) importFrom(stringr,str_replace_all) diff --git a/R/plot_ps_tile.R b/R/plot_ps_tile.R index ffc21a51d50640ca507d618a27b8143fd4495d50..27d8c9be014bfa74487a10ab07a9d20e070b369c 100644 --- a/R/plot_ps_tile.R +++ b/R/plot_ps_tile.R @@ -97,7 +97,8 @@ print_avannual_qtile <- function(sim_verify, #' be set in \code{run_swat_verification()} #' @param exclude_lum Character vector to define land uses which are excluded #' in the printed table. -#' +#' @importFrom dplyr count +#' @importFrom stats density #' @importFrom ggplot2 ggplot geom_histogram labs theme_bw theme geom_density aes #' @return Returns ggplot object with histogram and density curve for tile drain from distribution. #' @export