plotly / plotly/plotly.R

ggplot2::sec_axis is unsupported

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

Hello!

When I use ggplot2::scale_y_continuous(sec.axis = ggplot2::sec_axis(~ . / scale_factor)) like this, I discovered that plotly does not support this function. Providing support for this function would greatly assist developers like myself who are accustomed to ggplot but wish to utilise plotly's interactive capabilities.

Thanks.

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 ggplot2::scale_y_continuous(sec.axis = ggplot2::sec_axis(~ . / scale_factor)) example and inspect how plotly.R handles ggplot2 scales. Define the expected secondary-axis behavior and verify that the example renders correctly in an interactive plot; the issue does not name files or tests to run.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.