瀏覽代碼

Use updated guide term

Bryan Roessler 7 月之前
父節點
當前提交
eb3ed1470c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      qhtcp-workflow/apps/r/calculate_interaction_zscores.R

+ 3 - 3
qhtcp-workflow/apps/r/calculate_interaction_zscores.R

@@ -396,12 +396,12 @@ generate_and_save_plots <- function(out_dir, file_name, plot_configs, grid_layou
       plot_base  # default case if no type matches
     )
 
-    # Apply additional settings if provided
+    # Apply additional settings
     if (!is.null(config$legend_position)) {
       plot <- plot + theme(legend.position = config$legend_position)
     }
 
-    # Add title and labels if provided
+    # Add title and labels
     if (!is.null(config$title)) {
       plot <- plot + ggtitle(config$title)
     }
@@ -414,7 +414,7 @@ generate_and_save_plots <- function(out_dir, file_name, plot_configs, grid_layou
 
     # Apply scale_color_discrete(guide = FALSE) when color_var is NULL
     if (is.null(config$color_var)) {
-      plot <- plot + scale_color_discrete(guide = FALSE)
+      plot <- plot + scale_color_discrete(guide = "none")
     }
 
     # Add interactive tooltips for plotly