Recolouring treeplot
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- r
- Domain
- data-visualization
Research direction
Start by reading the treeplot implementation and how it constructs the dendrogram, labels, and ggplot layers. Reproduce the supplied treeplot(gsetree, hclust_method = "complete") call, then determine whether these aesthetics are exposed or require an API change. Done means a documented way to customize the requested colours and appearance.
Written by the indexing model from the issue text.
Description
Hi!
Really nice package, thank you! I am trying to modify the colouring for treeplot. I was able to modify the code for gseaplot2 pretty easily by changing the function code, but doing this for treeplot returned:
function (x, ...)
standardGeneric("treeplot")
... etc
I then tried simply tagging on ggcode to the plotting call, which worked to change the cluster block colours (via fill), and the dot point colours using colour, but this still leaves the dendogram and labels the previous and unwanted colours;
gsetreeplot <- treeplot(gsetree, hclust_method = "complete") +
scale_fill_manual(values = c("#006600",
"#300000",
"#ff9900",
"red",
"#1d3e59")) +
scale_colour_gradient(low = "#000000",
high = "#ffffff",
guide = "p Value")
How can I change these aesthetics? And moreover, how would I go about further modifying the appearance of this plot (line widths, dot borders, etc), like I was able to do by modifying the gseaplot2 function code?
Thanks again,
Dan
- 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
-
Urgent request: Due to vulnerabilities move to API version 12.6.1 (12.6.2 eventually) or 13.1.1 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jbkunst/highcharter#849 ·
-
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