plotly / plotly/plotly.R

geom_errorbar does not take "size" aesthetics

Open
#784 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It seems ggplotly returns the same plot with different size. Here is an example:

df <- data.frame(x = 1:10,
                 y = 1:10,
                 ymin = (1:10) - runif(10),
                 ymax = (1:10) + runif(10),
                 xmin = (1:10) - runif(10),
                 xmax = (1:10) + runif(10))

p <- ggplot(df)+
  geom_errorbar(aes(ymin = ymin, ymax = ymax, x = x, y = y), size = 10)


ggplotly(p)

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 running the supplied R example with ggplotly and compare the rendered geom_errorbar output for different size values. Trace the ggplotly conversion entry point for geom_errorbar and determine where the size aesthetic is lost. Done means the rendered error bars visibly change with size and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.