songw01 / MEGENA

Multiscale embedded gene co-expression network analysis
GNU General Public License v3.0
48 stars 16 forks source link

Error: (converted from warning) `guides(<scale> = FALSE)` is deprecated. Please use `guides(<scale> = "none")` instead. #18

Open scas224 opened 2 years ago

scas224 commented 2 years ago

Hi, I am trying to use plot_module() to create module subnetwork plots, but when I run the code, I receive an error that I have not been able to fix.

pnet.obj.9 <- plot_module(output.summary = summary.output,PFN = g,subset.module = "c1_9", layout = "kamada.kawai",label.hubs.only = TRUE, gene.set = NULL,color.code = "grey", output.plot = FALSE,out.dir = "modulePlot",col.names = c("magenta","green","cyan"),label.scaleFactor = 20, hubLabel.col = "black",hubLabel.sizeProp = 1,show.topn.hubs = Inf,show.legend = TRUE) Processing module:c1_9 number of genes: 975 number of hubs: 52 generating module subnetwork figure... Error: (converted from warning) guides(<scale> = FALSE) is deprecated. Please use guides(<scale> = "none") instead.

Does anyone know how to fix this?

HongxiangXu commented 1 year ago

Error: (converted from warning) guides(<scale> = FALSE) is deprecated. Please use guides(<scale> = "none") instead. actually this error is just a warning

use options(warn =0) Sometimes R regarded warn as error, so you need to set this global option before run the code.