diff options
| author | Chris Sobczak <chris@sobczak.family> | 2026-06-12 17:41:21 -0700 |
|---|---|---|
| committer | Chris Sobczak <chris@sobczak.family> | 2026-06-12 17:41:21 -0700 |
| commit | 48fe2c177b746c4a4957f7aa6cbec1cb50cf22b4 (patch) | |
| tree | 842c3a7067b47795ef1688303f38e9c6ad81f32c /R/corplot.R | |
| parent | 27bffa864ac6ebfa9bc5ad4c577d5da02cd3bac4 (diff) | |
Create networkplot
Diffstat (limited to 'R/corplot.R')
| -rw-r--r-- | R/corplot.R | 3 |
1 files changed, 1 insertions, 2 deletions
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( |
