plotly / plotly/plotly.R

geom_GeomCircle() has yet to be implemented in plotly.

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

Hello,

In short, plotly currently doesn't support geom_circle(), and it would be great to be able to do so.

In this example, I am making a plot of several overlapping circles corresponding to their variable number's size (in this case, tonnes of carbon). It would be great to use plotly to create a hover function that displays each circle's total number of tonnes, for easy reading by the user. I would like to use renderPlotly({}) instead of renderPlot({}) in the following example.

Thanks!

output$carbon_stores_summary_plot <- renderPlot({

        ggplot(data = carbon_data)+
          coord_fixed()+
          geom_circle(aes(x0 = 0, y0 = 1,
                          r = 1),
                      fill = "#7ECBEF",
                      color = NA,
                      n = 10000)+
          geom_circle(aes(x0 = 0, y0 = V/B,
                          r = V/B),
                      fill = "#357D57",
                      color = NA,
                      n = 5000)+
          geom_circle(aes(x0 = 0, y0 = I/B,
                          r = I/B),
                      fill = "#8c007a",
                      color = NA,
                      n = 5000)+
          theme_void()
})

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 with the supplied geom_circle example and compare the current renderPlot and renderPlotly paths in plotly.R. Determine how circles, their sizes, and the requested hover values should be represented; done means the overlapping circles render through renderPlotly and expose each circle's total to the user.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.