plotly / plotly/plotly.R

Can only have one: config

Open
#1,637 1 comment 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

Brief description of the problem:
In the subplot function, if I input a mix of ggplot2 object and plotly object, I got 'Warning message: Can only have one: config'. How to fix the warning?
Below is an example.

library(plotly); library(ggplot2)
g <- ggplot(diamonds, aes(x=carat, y=price, color=cut)) + geom_point()
p <- plot_ly(z = volcano, type = "heatmap")
subplot(ggplotly(g), plot_ly(type="heatmap"), p, nrows=2, shareX=TRUE, shareY=TRUE)  

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 ggplot2 and plotly, then trace subplot handling for the mixed ggplotly and plotly objects. The payload names no implementation file or test; done means determining and addressing the source of the “Can only have one: config” warning without breaking the shown subplot case.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.