Hello,
I would really like to use your package for the analysis of my microbiome project, however I get an error with network.2 function:
Error in `geom_point()`:
! Problem while computing aesthetics.
ℹ Error occurred in the 2nd layer.
Caused by error in `rlang::sym()`:
! Can't convert a function to a symbol.
Run `rlang::last_trace()` to see where the error occurred.
This is the backtrace:
Backtrace:
▆
- ├─global network.2(...)
- │ └─ggtern::ggsave(plotname, pnet, width = 11, height = 9)
- │ ├─grid::grid.draw(plot)
- │ └─ggtern:::grid.draw.ggplot(plot)
- │ ├─base::print(x)
- │ └─ggtern:::print.ggplot(x)
- │ ├─ggtern::ggplot_build(x)
- │ └─ggtern:::ggplot_build.ggplot(x)
- │ └─ggint$by_layer(...)
- │ ├─rlang::try_fetch(...)
- │ │ ├─base::tryCatch(...)
- │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
- │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
- │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
- │ │ └─base::withCallingHandlers(...)
- │ └─ggtern (local) f(l = layers[[i]], d = data[[i]])
- │ └─l$compute_aesthetics(d, plot)
- │ └─ggplot2 (local) compute_aesthetics(..., self = self)
- │ └─base::lapply(aesthetics, eval_tidy, data = data, env = env)
- │ └─rlang (local) FUN(X[[i]], ...)
- └─rlang::sym(fill)
I call the function with this code:
result = network.2(ps = bacteria_organs_common.ps, N = 100, r.threshold=0.6, big = T,
select_layout = F, group = "Organ_Source", fill = "Phylum",
p.threshold=0.05, label = FALSE, path = path , zipi = F, ncpus = 8)
Can you give me please some advice, if I am doing something wrong or how to go around the error.
Best
Matevz
Hello,
I would really like to use your package for the analysis of my microbiome project, however I get an error with network.2 function:
This is the backtrace:
Backtrace:
▆
I call the function with this code:
Can you give me please some advice, if I am doing something wrong or how to go around the error.
Best
Matevz