Skip to content

enrichplot - treeplot() question #39

@JimmyMakmhc

Description

@JimmyMakmhc

Dear all,

I am unable to assess the following link:
https://rdrr.io/github/YuLab-SMU/enrichplot/man/treeplot.html

I am struggling to adjust the tree plot, in particular, to the tip label:
(1) colour matching to the group_color (as shown in the link: https://yulab-smu.top/biomedical-knowledge-mining-book/enrichplot.html#tree-plot
(2) and to wrap the tip label text with str_wrap().

Would anyone have advice or resources to address my problems?
Many thanks.

`p1 <- treeplot(x,
showCategory = 40,
cluster.params = list(method = "ward.D2",
n = 5,
label_words_n = 4,
color = c("#bebada", "#fb8072", "#56B4E9",
"#8dd3c7", "#ffff99")
),
offset.params = list(bar_tree = rel(1.5),
tiplab = rel(15),
extend = 0,
hexpand = 0.5),
xlim = NULL,
)

p1`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions