scRNAtoolVis
scRNAtoolVis copied to clipboard
jjVolcano Error
Error in ggplot2::geom_text()
:
! Problem while setting up geom aesthetics.
ℹ Error occurred in the 6th layer.
Caused by error in check_aesthetics()
:
! Aesthetics must be either length 1 or the same as the data ()
same here I want to know why
Same here! Thanks for your efforts!
try re-install scRNAtoolVis.
try re-install scRNAtoolVis.
rlang::last_trace() <error/rlang_error> Error in
ggplot2::geom_text()
: ! Problem while setting up geom aesthetics. ℹ Error occurred in the 6th layer. Caused by error incheck_aesthetics()
: ! Aesthetics must be either length 1 or the same as the data (1470) ✖ Fix the following mappings:size
Backtrace: ▆
- ├─base (local)
<fn>
(x) - └─ggplot2:::print.ggplot(x)
- ├─ggplot2::ggplot_build(x)
- └─ggplot2:::ggplot_build.ggplot(x)
-
└─ggplot2:::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(...)
-
└─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
-
└─l$compute_geom_2(d)
-
└─ggplot2 (local) compute_geom_2(..., self = self)
-
└─self$geom$use_defaults(data, self$aes_params, modifiers)
-
└─ggplot2 (local) use_defaults(..., self = self)
-
└─ggplot2:::check_aesthetics(params[aes_params], nrow(data))
I am sorry I think the problem still there even I tried re-install
重新安装试试,刚看了一下代码,源码好像是有点问题
Thanks a ton. It works now! Few things I noticed:
- the expand = c(-1,1) parameter doesn't work; this was a problem before and I had to use +ylim() to change the y-axis range.
- i see in the source code that it should only color plots that pass the adjusted p-value (default is 0.01). Maybe I'm wrong, but I don't think this works, the plots that are colored are all of my input data (not filtered by the code).