plotly / plotly/plotly.R

Geom_flow Implementation

Open
#2,395 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

Hi,
I have create an alluvial using the following code:

  plot_1 <- ggplot(table_2,
                   aes(x = Year, stratum = HC50, alluvium = HC50,
                       y = Normal,
                       fill = HC50, label = sprintf("%0.1f", round(Freq, digits = 1)))) +
  scale_fill_manual(values = mycols1) +
  scale_x_continuous(breaks = seq(2014, 2023, by = 1)) +
  geom_flow() +
  geom_stratum(alpha = .5) +
  geom_text(stat = 'stratum', size = 3.5)
plot_1

But get the following warning:

In geom2trace.default(dots[[1L]][[24L]], dots[[2L]][[1L]],  ... :
  geom_GeomFlow() has yet to be implemented in plotly.

Will ggplotly be implementing geom_flow?

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 by reproducing the warning with the supplied R example and inspect the ggplotly conversion path for geom_GeomFlow. Done means geom_flow is converted by ggplotly without the unimplemented warning and the resulting visualization preserves the flow plot.

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
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.