Skip to content

resource involvement tooltip #29

@vibhavermaa

Description

@vibhavermaa

I have created a resource-level resource involvement plot and wrapped it with ggplotly function.

plot_obj <- patients %>% resource_involvement("resource") %>% plot()
ggplotly(plot_obj)

In the plot, tooltip renders the same element multiple times. In ggplotly documentation, the tooltip default is set to "all", thereby showing all the aesthetic mappings(including the unofficial "text" aesthetic).

image

Assuming, resource activity plot maps the same element multiple times to the aesthetics attributes [ edeaR/resource_involvement.r , code snippet attached for reference], the tooltip element is rendered multiple times.

image

the ask is, Is there a way that this can be handled at the plot generation level i.e resource_involvement function, or any alternate way to solve this problem?

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