I hope this is the right place to ask this question. I’m currently working on building Shiny apps with interactive choroplethic maps and I’d like to gather some insights on the advantages and disadvantages of using Plotly versus Leaflet for this purpose.
I’ve noticed that there are two popular options for rendering choroplethic maps in Shiny apps: Plotly and Leaflet. I’d like to explore the strengths and weaknesses of each to make an informed choice for my project. Here are some of my initial observations:
- It seems to be faster, especially when coding directly in Plotly, as opposed to using ggplot and then converting with ggplotly.
- It offers a cleaner look, especially as it doesn’t require map tiles.
- I’ve encountered challenges in creating visually appealing popup labels.
- Struggling to use images/icons effectively for plotting points.
- Potentially more flexibility in customizing and popups.
- May be slower compared to Plotly.
- Is it indeed necessary to use tiles, I’m trying to avoid the gray background while using mapBox
- Preference: Which library do you prefer for creating choroplethic maps in Shiny, Plotly, or Leaflet? Why?
- Performance: Have you noticed significant differences in performance between the two libraries in terms of map rendering and responsiveness?
Please feel free to share your experiences and any best practices you’ve discovered when using these libraries in your Shiny apps. If you know of any other libraries besides Plotly and Leaflet that stand out in creating choroplethic maps for Shiny apps, please do share your insights. Your input will greatly help me and others.
Thank you in advance for your contributions!