Skip to content

Adding more than 2 heatmaps side-by-side not working #123

Open
@jantusan

Description

@jantusan

Hello,

Thank you for the useful package! I am trying to add heatmaps side by side with the + function of ComplexHeatmap, but it doesn't work if it is more than 2 heatmaps

p_heatmap = heatmap(mtcars_tidy, `Car name`, Property, Value, scale = "row") 

# works and throws the expected warning
p_heatmap + p_heatmap
#> Warning: Heatmap/annotation names are duplicated: Value

# gives an additional warning and an error
p_heatmap + p_heatmap + p_heatmap
#> Warning: Heatmap/annotation names are duplicated: Value
#> Warning: Incompatible methods ("+.AdditiveUnit", "+.InputHeatmap") for "+"
#> Error in p_heatmap + p_heatmap + p_heatmap : non-numeric argument to binary operator

is there a way to add more than 2 heatmaps side-by-side like in ComplexHeatmap?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions