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

All Questions

Tagged with
0 votes
0 answers
238 views

R: Understanding the "max" and "blur" options

I am working with the R programming language. Using the following code, I made an interactive map with the "leaflet" library : Lat = round(runif(5000,43,44), 4) Long = round(runif(5000,79,80)...
stats_noob's user avatar
  • 5,705
0 votes
0 answers
107 views

Can I create an embed code for an interactive choropleth map made using the leaflet package in R?

I'm new to R. I've just made a basic interactive choropleth map using the leaflet package in R: leaflet() %>% addProviderTiles("CartoDB.Positron") %>% setView(-2, 55, zoom = 5) %&...
TL_13's user avatar
  • 1
1 vote
1 answer
525 views

Interactive choropleth map with leaflet inaccurately mapping data

First post, I'll try to do my best. I'm trying to make an interactive choropleth map with leaflet in R, based off this tutorial. It all goes great until I compare the data represented on the map with ...
Ziemowit Bućko's user avatar
0 votes
0 answers
152 views

how to add polygons in shapefile in R

I have a few building data in shapefile. Now I want to add some small circules/rectangles/anything suitable to represent the lighting poles beside the building. How could I do that in R. Currently I ...
Yang Kewen's user avatar
5 votes
1 answer
3k views

Add "rgb" legend to R leaflet heatmap

I made some interactive heatmaps using leaflet (particularly the addHeatmap() command from the leaflet.extras package) and shiny. Having created a desired map, I would like to add a legend to it. ...
Crimmlaz's user avatar
2 votes
0 answers
865 views

leaflet legend for Custom Awesome Marker in R?

I need to add some custom marker legends to my leaflet map. So far, the closest solution I found is this. According to the solution in the link, I need to use the addControl() function. First I ...
user3498115's user avatar
0 votes
1 answer
128 views

Leaflet package in R: why are the labels misplaced when plotting them with noHide=T?

I am trying to plot gas stations in Spain, and I would like the plot to show the names or brand names of each station. So far I have struggled a little bit with this, but I finally got my way around ...
Miguel M.'s user avatar
  • 251
1 vote
1 answer
470 views

Adding geographic polygons via readOGR / addPolygon() with Leaflet in R

I've been following this tutorial, but for some reason I can't seem to get these borough polygons to show up in leaflet. If I do plot(boroughs) everything works fine, you can clearly see the ...
skathan's user avatar
  • 659
20 votes
2 answers
29k views

leaflet with R: add text labels

This code is taken from this page: library(leaflet) leaflet(data = quakes[1:20,]) %>% addTiles() %>% addMarkers(~long, ~lat, popup = ~as.character(mag)) Instead of markers, is there any way ...
luciano's user avatar
  • 13.7k

15 30 50 per page
1
2