Replies: 1 comment
-
|
Maybe you need to restart your R session? It is there. > sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur/Monterey 10.16
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] C/UTF-8/C/C/C/C
attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] ComplexHeatmap_2.13.2 colorout_1.2-2
loaded via a namespace (and not attached):
[1] circlize_0.4.16 matrixStats_0.62.0 codetools_0.2-18
[4] IRanges_2.30.0 png_0.1-7 digest_0.6.29
[7] foreach_1.5.2 crayon_1.5.1 stats4_4.2.0
[10] GlobalOptions_0.1.2 doParallel_1.0.17 S4Vectors_0.34.0
[13] GetoptLong_1.1.0 RColorBrewer_1.1-3 rjson_0.2.21
[16] iterators_1.0.14 parallel_4.2.0 compiler_4.2.0
[19] clue_0.3-61 colorspace_2.0-3 BiocGenerics_0.42.0
[22] cluster_2.1.3 shape_1.4.6
> anno_numeric
function (x, rg = range(x), labels_gp = gpar(), x_convert = NULL,
labels_format = NULL, labels_offset = unit(4, "pt"), bg_gp = gpar(fill = "#8080FF",
col = "#8080FF"), bar_width = unit(1, "npc") - unit(4,
"pt"), round_corners = TRUE, r = unit(0.05, "snpc"),
which = c("row", "column"), align_to = "left", width = NULL)
{
which = match.arg(which)[1]
if (which == "column") {
stop_wrap("`anno_numeric()` can only be used as row annotation.")
}
if (!is.numeric(x)) {
stop_wrap("Input for `anno_numeric()` should be a numeric vector.")
}
if (!is.null(labels_format)) {
labels = labels_format(x)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can still get the content of anno_numeric() in ComplexHeatmap document, but I can't use this function in RStudio, my package version is 2.13.2.
Beta Was this translation helpful? Give feedback.
All reactions