From 79c1ff54fb5448163c5c0432f40f882d4493cc21 Mon Sep 17 00:00:00 2001 From: "Yuhang (Tom) Lin" Date: Sat, 23 Sep 2023 22:53:42 -0500 Subject: [PATCH] importFrom ggplot2::aes --- NAMESPACE | 1 + R/get_sig_MSE.R | 2 +- R/get_sig_raw.R | 2 +- R/get_sigalign.R | 2 +- R/get_x3p_inner_impute.R | 2 +- R/get_x3p_rotate_angle_quantile.R | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 58b0bcb..8d7005e 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -29,6 +29,7 @@ importFrom(dplyr,n) importFrom(dplyr,rename) importFrom(dplyr,select) importFrom(dplyr,summarize) +importFrom(ggplot2,aes) importFrom(ggplot2,geom_histogram) importFrom(ggplot2,geom_line) importFrom(ggplot2,geom_point) diff --git a/R/get_sig_MSE.R b/R/get_sig_MSE.R index a65e828..9cc7417 100644 --- a/R/get_sig_MSE.R +++ b/R/get_sig_MSE.R @@ -7,7 +7,7 @@ #' @param delta shifting range when minimizing MSE #' @import dplyr #' @importFrom x3ptools x3p_to_df x3p_delete_mask x3p_bin_stripes -#' @importFrom ggplot2 ggplot geom_line geom_point +#' @importFrom ggplot2 ggplot aes geom_line geom_point #' @importFrom stats na.omit median lm coef approx #' @importFrom purrr map_dbl map set_names #' @importFrom tidyr nest unnest diff --git a/R/get_sig_raw.R b/R/get_sig_raw.R index 064125d..718c1bf 100644 --- a/R/get_sig_raw.R +++ b/R/get_sig_raw.R @@ -6,7 +6,7 @@ #' @param ifplot whether graphs are displayed #' @import dplyr #' @importFrom x3ptools x3p_to_df -#' @importFrom ggplot2 ggplot geom_line +#' @importFrom ggplot2 ggplot aes geom_line #' @importFrom stats na.omit median #' @export diff --git a/R/get_sigalign.R b/R/get_sigalign.R index 699c2e0..c4c0c64 100644 --- a/R/get_sigalign.R +++ b/R/get_sigalign.R @@ -9,7 +9,7 @@ #' @param name2 name for the second cut #' @param legendname legend name #' @param titlename title name -#' @importFrom ggplot2 ggplot geom_line labs xlab ggtitle +#' @importFrom ggplot2 ggplot aes geom_line labs xlab ggtitle #' @importFrom bulletxtrctr sig_align #' @export diff --git a/R/get_x3p_inner_impute.R b/R/get_x3p_inner_impute.R index 37c3eea..4f0c430 100644 --- a/R/get_x3p_inner_impute.R +++ b/R/get_x3p_inner_impute.R @@ -9,7 +9,7 @@ #' @param ifplot whether graphs are displayed #' @import dplyr #' @importFrom x3ptools x3p_delete_mask x3p_extract x3p_average x3p_add_mask -#' @importFrom ggplot2 ggplot geom_raster scale_fill_gradient2 labs ggsave +#' @importFrom ggplot2 ggplot aes geom_raster scale_fill_gradient2 labs ggsave #' @importFrom assertthat assert_that not_empty #' @importFrom raster raster focal as.data.frame as.matrix #' @importFrom purrr map diff --git a/R/get_x3p_rotate_angle_quantile.R b/R/get_x3p_rotate_angle_quantile.R index 767e3cb..57fac8e 100644 --- a/R/get_x3p_rotate_angle_quantile.R +++ b/R/get_x3p_rotate_angle_quantile.R @@ -6,7 +6,7 @@ #' @param min_score_cut the tuning parameter for minimum scores required in hough transformation #' @param ifplot whether graphs are displayed #' @import dplyr -#' @importFrom ggplot2 ggplot geom_histogram geom_point +#' @importFrom ggplot2 ggplot aes geom_histogram geom_point #' @importFrom raster raster #' @importFrom imager as.cimg hough_line nfline #' @importFrom stats quantile median