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

All Questions

Tagged with
1 vote
0 answers
131 views

Map (with geojson) instead of Leaflet map

I am doing a poster for class. Everything was ok, I created a descent map for showing some data in New York, using Leaflet. jpal <- colorRampPalette(c("#03B9FF", "#801515")) # qpal <- ...
Anakin Skywalker's user avatar
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
0 answers
301 views

How to add line not connected in a sequence using leaflet

It seems polyline will connect all the start end points in sequence together like an unfilled polygon. Is there a way to add each line separately on an interactive map in R? This earlier thread ...
santoku's user avatar
  • 3,417
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
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
1 vote
1 answer
1k views

Advanced Popups in R Shiny Leaflet

I have a dataset as follows itemcat country item Price date_today lat lng Clothes Bangkok Shoes $5 2016-04-27 13.75 100.51 Clothes Bangkok Tshirt $5 2016-04-27 13.75 100.51 Clothes Bangkok Skirt $5 ...
stochastiq's user avatar
1 vote
2 answers
2k views

Interactive Map in R using leaflet/Shiny

I want to create a map with a sidebar where you can select the range of a time period. The idea is that the map shows marks only for hotels which opened during the period. I had no clue to do that so ...
Yoshi's user avatar
  • 43
0 votes
1 answer
796 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
9 votes
1 answer
2k views

How to create an interactive plot of GTFS data in R using Leaflet?

I would like to create an interactive map showing the public transport lines of a city. I am trying to do this using Leaflet in R (but I'm open to alternatives, suggestions?) Data: The data of the ...
rafa.pereira's user avatar
  • 13.7k
1 vote
1 answer
383 views

Geo mapping in R

I have a transaction data at country level. Data Sample: TransID CountryOrigin(CO) CountryDestination(CD) COLat COLong CDLat CDLong 1 India Australia ...
Leeya's user avatar
  • 170
2 votes
2 answers
3k views

Is it possible to use rMaps to draw a route on a map in R?

I'm trying to use rmaps http://rmaps.github.io/ to draw the route a vehicle follows onto a map. In my ideal world, the map should: * be interactive (i.e. zoomable, scrollable) * store and display ...
CPhil's user avatar
  • 927

15 30 50 per page
1 2
3