Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
797 views

OpenStreetMap doesn't display in RStudio (with R 3.2.1)

I am using code from here library(leaflet) m <- leaflet() %>% addTiles() %>% addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R") m A point appears in the middle of ...
Rhonda's user avatar
  • 1,691
4 votes
1 answer
3k views

R Leaflet Legend: colorBin- removing decimals in between breaks

I am creating an interactive HTML map in R using the Leaflet library. The legend employs the colorBin method for creating the 6 categories to break the data into. Using the min(values) and max(...
sconfluentus's user avatar
  • 4,955
3 votes
1 answer
3k views

Vary label color in R Leaflet

I have a data frame with a binary variable and xy coordinates. I can map the data with Leaflet and vary the color of the markers for each variable, but I want to know if I can also vary the label ...
Abby's user avatar
  • 53
2 votes
0 answers
2k views

Export/Download leaflet map in shiny in various formats?

I created a shiny dashboard to analysis the crimes in chicago. Therefore I also built a leaflet map of chicago where we can see based on markers how many crimes happened in which area of chicago. I ...
S002's user avatar
  • 31
2 votes
1 answer
2k views

R Shiny leaflet addPolygons (colors are not showing)

I hope you can help me. I have created a choropleth Map with Leaflet. I merged my (dataframe with countries and a random score) and a Shapefile with the Polygon data. So far it is working, however if ...
Josef's user avatar
  • 21
1 vote
1 answer
624 views

How different colors to different sections of a route on leaflet map? [R Studio]

I have a JSON file of a long route. The file contains the lat and long of of this route. I'm trying to mark different sections of this route based on a set of criteria (which I've compiled in a ...
dfyc's user avatar
  • 11
0 votes
2 answers
2k views

how to draw tilegram/hexagon map in R

I'm referring to this article on US tilegram in R. However, I don't know what pre-processing is needed on the df in order to turn it into a hexagon map or tilegram. The sf_NPR1to1 passed to leaflet in ...
santoku's user avatar
  • 3,417