All Questions
40
questions
0
votes
1
answer
84
views
Derived spatial lines pointing to incorrect polygons
I'm currently trying to make a flow map in leaflet for R to map the movement of something from one area (polygon) to another.
library(sp)
library(rgdal)
library(tidyverse)
library(leaflet)
I'm ...
2
votes
0
answers
864
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 ...
0
votes
1
answer
816
views
R - Leaflet Code "Error in mutate_impl(.data, dots) : object 'address.lon' not found"
I'm trying to re-appropriate a Leaflet code I used six months ago, with which I had no problem at the time. I haven't used Leaflet since then and am now no longer able to generate maps like I was ...
3
votes
2
answers
1k
views
how to plot multiple isochrone on leaflet map in R
i can plot one isochrone in R at a time using Rmapzen package with this code, each isochrone is generated as a sp object, is there any way to create multiple isochrone on the same map like the ...
5
votes
2
answers
6k
views
How to plot country-based choropleths using leaflet R
World boundaries geo.json downloaded from here.https://github.com/johan/world.geo.json
I am trying to highlight 3 countries(in a world map view) and paint them in gradient color according to numbers ...
6
votes
2
answers
14k
views
Draw a map of a specific country with leaflet
I would like to use the package leaflet with R to draw a map of a specific countries such as Italy, Spain, etc.
I checked the basic examples with the function setView() and I tried to give a vector ...
1
vote
0
answers
497
views
R add json string with polygons to leaflet
I would like to intergrate a couple of polygons into my leaflet map. These polygons are written in WKT. By using the package wellknown i convert them to a geosjon format
InstallCandidates <-c("...
2
votes
1
answer
4k
views
Animated marker moving and/or path trajectory with Leaflet and R
I am very excited the spatial abilities of Leaflet combined with R but I badly need the possibility to move around markers and/or draw paths over maps. As far as I see the Leaflet R package lacks this ...
1
vote
1
answer
1k
views
Display Line on Leaflet
I want to display a line on a leaflet (for R) map.
The points of my line:
myPoints < - structure(list(lat = c(52.40684, 52.40682, 52.40681, 52.40679,
52.40675, 52.40669, 52.40668, 52.40661, 52....
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 ...