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

Combining certain elements of the tooltip #106

Open
srsankhe opened this issue Jul 17, 2024 · 0 comments
Open

Combining certain elements of the tooltip #106

srsankhe opened this issue Jul 17, 2024 · 0 comments

Comments

@srsankhe
Copy link

Using the example heatmap from here Is there a way to combine the tooltip info for a specified group of annotations? like Patient: 5 \n Max: 2.05
I know i can prepend things to the row and value. But doing this manually can be daunting. For row name this is an easy fix but for dynamic covariate information is this something the that could be implemented here?

main_heatmap(Indometh_patient_cor,name = "Correlation") %>%
    add_col_clustering() %>%
    add_row_clustering(k = 3) %>%
    add_row_title("Patients") %>%
    add_col_title("Patients") %>%
    add_row_annotation(data.frame("Max" = patient_max_conc,
                                  "Min" = patient_min_conc,
                                  "Groups" = patient_groups))
Screenshot 2024-07-17 at 4 13 58 PM
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