-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
我在使用trackVis遇到了一定的问题,我的代码如下:
file <- list.files(pattern = '.bw')
data <- loadBigWig(file)
save(data,file = 'Data.rda')
load('Data.rda')
mybw <- data
trackVis(bWData = mybw,chr = "Wnk4",region.min = 101167654,region.max = 101168235)
错误信息如下所示:
Error incombine_vars()
:
! Faceting variables must have at least one value
Runrlang::last_error()
to see where the error occurred.
Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf
详细展开错误信息如下:
<error/rlang_error>
Error incombine_vars()
:
! Faceting variables must have at least one value
Backtrace:
▆
- ├─base (local)
<fn>
(x) - └─ggplot2:::print.ggplot(x)
- ├─ggplot2::ggplot_build(x)
- └─ggplot2:::ggplot_build.ggplot(x)
-
└─layout$setup(data, plot$data, plot$plot_env)
-
└─ggplot2 (local) f(..., self = self)
-
└─self$facet$compute_layout(data, self$facet_params)
-
└─ggplot2 (local) f(...)
-
├─ggplot2:::unrowname(...)
-
│ └─base::is.data.frame(x)
-
└─**ggplot2::combine_vars(data, params$plot_env, vars, drop = params$drop)**
-
└─rlang::abort("Faceting variables must have at least one value")
粗体部分似乎为主要问题,期待您的回复
Metadata
Metadata
Assignees
Labels
No labels