From 55167e0c91efd9e4191e271d7e05e09a53ecd7ac Mon Sep 17 00:00:00 2001
From: rpalaganas <ryanpalaganas96@gmail.com>
Date: Fri, 16 Feb 2024 13:57:42 -0500
Subject: [PATCH] Update plotting.R

---
 R/plotting.R | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/R/plotting.R b/R/plotting.R
index 8258343..763dea9 100644
--- a/R/plotting.R
+++ b/R/plotting.R
@@ -213,13 +213,17 @@ plotVolcano <- function(
 #' @return A list with weighted and unweighted differential expression metrics
 #' @export
 #plot FC, weighted and unweighted. Designed for use with the output of projectionDriveRs
-pdVolcano <- function(result,
-                      FC = 0.2,
-                      pvalue = NULL,
-                      subset = NULL,
-                      filter.inf = FALSE,
-                      label.num = 5L,
-                      display = TRUE) {
+pdVolcano <- function(
+    result,
+    FC = 0.2,
+    pvalue = NULL,
+    subset = NULL,
+    filter.inf = FALSE,
+    label.num = 5L,
+    display = TRUE) {
+  
+  #bind local variables 
+  welch_padj <- Color <- NULL
   #if a genelist is provided, use them to subset the output of projectiondrivers
   if (!is.null(subset)) {
     #subset the mean_stats object by provided gene list