Skip to content

Missing negative values after adjust pwidth parameter #23

@Microbion

Description

@Microbion

I adjust the pwidth to control the width of the barplot layer, as #2 told. But negative values will be missing when pwidth is higher.

ggtree(tree, layout = "radial", ladderize = FALSE, branch.length = "none", aes(color = group)) +
xlim(-10, NA) +
scale_color_viridis_d() +
ggnewscale::new_scale_color() +
geom_fruit(data = deseq_res, geom = geom_bar, stat = "identity", orientation = "y", pwidth = 0.25, offset = 0.2,
           mapping = aes(x = log2FoldChange, y = row, color = color))

And it's going well, like this:
image
But if I ajust pwidth to 5 (or smaller than 5), I get Warning message "“Removed 355 rows containing missing values (position_stackx).”", and lose lots of negative values.
image
Is it suite for my situation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions