object 'new.order' not found when plotting adjacency matrix

24 views
Skip to first unread message

Hui Xu

unread,
Jul 25, 2022, 5:49:34 PM7/25/22
to brainGraph-help
Hi Christopher,

Sorry to bother you again. Based on brainGraph V3.0, I tried many times to plot adjacency matrix (Chapter 15.2.1), there was a error reported as following:

"Error in plot.corr_mats(corrs, thresh.num = 18, order.by = "comm", graphs = g.subject[[18]], : object 'new.order' not found"

Could you help me to figure out how to fix this bug? My codes for this plot were listed as following:

densities <- seq(0.05, 0.40, 0.01) 

corrs <- corr.matrix(myResids,
                     densities=densities,
                     what = 'resids',
                     exclude.reg=exclude.reg)

g.subject <- lapply(seq_along(densities), function(x)
  make_brainGraphList(
    corrs[x],
    atlas = 'dk',
    level = "subject",
    weighted = TRUE,
    modality = 'thickness',
    .progress = F
  ))

matplot.comm <-
  plot(
    corrs,
    thresh.num = 18,
    order.by = 'comm',
    graphs = g.subject[[18]],
    grp.names = ''
  ) ##  a error reported here


matplot.lobe <- plot(corrs, thresh.num = 18) ##  the same error reported here

Best,
Hui



Chris Watson

unread,
Nov 28, 2022, 10:52:31 AM11/28/22
to brainGr...@googlegroups.com
Hi Hui, sorry for the long delay in response.
If this error still occurs for you, please follow the instructions in the User Guide Chapter 2.1. In particular, I'd like to know the versions of R and brainGraph you used, and may need your data to replicate the error.

Chris

--
You received this message because you are subscribed to the Google Groups "brainGraph-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brainGraph-he...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/50e9f83e-64e4-4fe8-a565-f30100860c42n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages