From 4ff18e777f60f2c76d3077da2026b149d6c96916 Mon Sep 17 00:00:00 2001 From: Brittany Troast Date: Mon, 10 Feb 2025 15:28:18 -0500 Subject: [PATCH] Add imports to plot_fn_obj --- NAMESPACE | 2 ++ R/plot_fn_obj.R | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/NAMESPACE b/NAMESPACE index 359ef94..c97bcd2 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -5,3 +5,5 @@ export(hello) export(hello2) export(plot_fn_obj) import(dplyr) +import(ggplot) +import(plotly) diff --git a/R/plot_fn_obj.R b/R/plot_fn_obj.R index 9de73b1..490646c 100644 --- a/R/plot_fn_obj.R +++ b/R/plot_fn_obj.R @@ -2,6 +2,8 @@ #' @description #' This function plots an indicator time series figure from data that is formated from the "data_prep" function in IEAnalyzeR. #' +#' @import ggplot +#' @import plotly #' #' @param df_obj Data object produced by the "data_prep" function. #' @param interactive Run plot through plotly to create an interactive version of the plot. @@ -66,3 +68,6 @@ plot_fn_obj<-function(df_obj, interactive=FALSE) { plot_sec } } + + +