plotly / plotly/plotly.R

Adding geom_GeomStepribbon()

Open
#2,477 0 comments 0 reactions 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 have a chart where I use geom_steppribbon() which is part of the pammtools package. This geom has yet to be implemented in plotly.
I am happy to help with the implementation. However, I have not yet contributed to plotly and would need some help where to get started.

This would be a minimal example of a chart with geom_stepribbon:

library(ggplot2)
library(pammtools)

huron <- data.frame(year = 1875:1972, level = as.vector(LakeHuron))

ggplot(huron, aes(year)) +
pammtools::geom_stepribbon(aes(ymin = level - 1, ymax = level + 1)) +
geom_step(aes(y = level))

Thank you already for your help.

Best,
Leo

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

The issue names no files or tests; start by locating plotly.R's existing handling for geom_step and ribbon layers, then compare it with the pammtools::geom_stepribbon example. Done should mean the minimal LakeHuron chart renders with the requested step ribbon in plotly.R.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.