From 48fe2c177b746c4a4957f7aa6cbec1cb50cf22b4 Mon Sep 17 00:00:00 2001 From: Chris Sobczak Date: Fri, 12 Jun 2026 17:41:21 -0700 Subject: Create networkplot --- R/corplot.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'R/corplot.R') diff --git a/R/corplot.R b/R/corplot.R index 4a9335e..08221a4 100644 --- a/R/corplot.R +++ b/R/corplot.R @@ -1,4 +1,3 @@ -utils::globalVariables(c('i', 'j', 'value')) #' Correlation Plot (Upper Triangle) #' #' Minimal ggplot2 correlation plot showing the upper triangle @@ -51,7 +50,7 @@ corplot <- function(R, title = NULL){ # And plot it p <- ggplot2::ggplot( data = df, - ggplot2::aes(x = j, y = i, fill = value) + ggplot2::aes(x = .data$j, y = .data$i, fill = .data$value) ) + ggplot2::geom_tile() + ggplot2::scale_fill_gradient2( -- cgit v1.2.3