Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in anno_word_cloud #90

Open
l-magnificence opened this issue Mar 19, 2023 · 0 comments
Open

Error in anno_word_cloud #90

l-magnificence opened this issue Mar 19, 2023 · 0 comments

Comments

@l-magnificence
Copy link

l-magnificence commented Mar 19, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant