How can I change the width of each coloum in the heatmap in the treeplot?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- r
- Domain
- data-visualization
Research direction
Start with the treeplot call, especially clusterPanel.params and offset.params, and inspect how the heatmap panel sizes columns as their count grows. Reproduce the overlap with the supplied example, then verify that a documented width control or clarified setting keeps column labels readable and the spacing between the heatmap and enriched terms reasonable.
Written by the indexing model from the issue text.
Description
When there are many columns, colnames overlap easily.
And it seems that as there are more and more coloum, the width gets smaller and smaller, and all the columns are squeezed together.
As a result, the parameter setting of tiplab = rel(1) is not very reasonable. When there are few columns, the heatmap may overpower the enriched terms, and when there are many columns, the distance between the heatmap and the enriched terms will be very empty.
This is the code for my drawing
p3 <- treeplot(merged, showCategory = 10,
hilight.params = list(hilight = TRUE, align = "both"),
offset.params = list(bar_tree = rel(1), tiplab = rel(1), extend = 0.3, hexpand = 0.1),
cluster.params = list(method = "ward.D", n = 7, color = NULL, label_words_n = 4, label_format = 30),
clusterPanel.params = list(clusterPanel = "heatMap")
Look forward to your reply! Thanks a lot!
- Dominant language
- R
- Stars
- 260
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from YuLab-SMU/enrichplot
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
YuLab-SMU/enrichplot#330 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
YuLab-SMU/enrichplot#327 · 2 comments ·
-
emapplot
Difficulty 4/5 3-5 days Newbie friendliness 28/100
YuLab-SMU/enrichplot#322 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
YuLab-SMU/enrichplot#319 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
YuLab-SMU/enrichplot#317 · 10 comments · 1 reaction ·
All issues in YuLab-SMU/enrichplot
Similar issues
-
documentation pkg infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epiverse-trace/epiparameter#511 ·
-
function:write_dwc
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100