Skip to content

geom_GeomCircle() has yet to be implemented in plotly. #1995

@taylorlockmann

Description

@taylorlockmann

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()
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions