plotly / plotly/plotly.R

[Feature request] Support for ggdist's geoms in ggplotly

Open
#1,992 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

I'm trying to convert a raincloud plot I realized using ggdist::stat_halfeye() to a plotly object, but it seems the engine doesn't manage its geoms, so it is removed from the final object, giving the following warning message:

In geom2trace.default(dots[[1L]][[3L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomSlabinterval() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues

Any chance that ggplotly will manage ggdist geoms too?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ggplotly conversion path and the geom2trace.default warning for geom_GeomSlabinterval(). Reproduce the raincloud example using ggdist::stat_halfeye(), then determine the required behavior for ggdist geoms and verify that they are retained in the resulting plotly object.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.