geom_GeomCircle() has yet to be implemented in plotly.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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