-
Notifications
You must be signed in to change notification settings - Fork 632
Open
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()
})
BenjaminVigreux
Metadata
Metadata
Assignees
Labels
No labels