transPlotR icon indicating copy to clipboard operation
transPlotR copied to clipboard

关于trackVis的问题

Open Zh-MicroSat opened this issue 1 year ago • 6 comments

我在使用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 in combine_vars(): ! Faceting variables must have at least one value Run rlang::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 in combine_vars(): ! Faceting variables must have at least one value


Backtrace: ▆

  1. ├─base (local) <fn>(x)
  2. └─ggplot2:::print.ggplot(x)
  3. ├─ggplot2::ggplot_build(x)
  4. └─ggplot2:::ggplot_build.ggplot(x)
  5. └─layout$setup(data, plot$data, plot$plot_env)
    
  6.   └─ggplot2 (local) f(..., self = self)
    
  7.     └─self$facet$compute_layout(data, self$facet_params)
    
  8.       └─ggplot2 (local) f(...)
    
  9.         ├─ggplot2:::unrowname(...)
    
  10.         │ └─base::is.data.frame(x)
    
  11.         └─**ggplot2::combine_vars(data, params$plot_env, vars, drop = params$drop)**
    
  12.           └─rlang::abort("Faceting variables must have at least one value")
    

粗体部分似乎为主要问题,期待您的回复

Zh-MicroSat avatar Sep 26 '22 12:09 Zh-MicroSat