simplifyEnrichment icon indicating copy to clipboard operation
simplifyEnrichment copied to clipboard

Error in anno_word_cloud

Open l-magnificence opened this issue 1 year ago • 0 comments

mat = matrix(rnorm(100*10), nrow = 100)
split = sample(letters[1:5], 100, replace = TRUE)
term = lapply(letters[1:5], function(x) {
  data.frame(c("This is the first sentence.", "This is the second sentence."), c(1, 1))
})
names(term) = letters[1:5]
Heatmap(mat, row_split = split, 
        right_annotation = rowAnnotation(wc = anno_word_cloud(split, term,
                                                              add_new_line = TRUE, value_range = c(1, 1), fontsize_range = c(10, 10)))
)

Error in anno_zoom(...) : unused arguments (add_new_line = TRUE, value_range = c(1, 1)) How to fixed it?

l-magnificence avatar Mar 19 '23 09:03 l-magnificence