All Questions
85
questions
1
vote
1
answer
566
views
Value assigned to the wrong country using Leaflet and Maps
I'm trying to plot European Countries using Leaflet but the Values that are assigned to the countries are incorrect. The goal is to create a choropleth map of Europe where each country has a specific ...
0
votes
1
answer
145
views
setView() dictionary in R Shiny Leaflet Maps
I'm currently creating a RShiny Application that uses Leaflet Map. As a feature, I need to zoom into certain continents (based on the users choice).
Is there a setView() dictionary for each of the ...
0
votes
1
answer
937
views
Interactive map for Latitude-Longitude based Sales data
I have a data-frame with only 3 column viz latitude ,longitude and sales. These latitudes and longitudes belong to "Saudi Arabia" . I want to create interactive heatmap for sales based on Latitude and ...
2
votes
2
answers
2k
views
Interactive map with tmap does not appear in Shiny app, but does show in Rstudio viewer
The interactive map I created with tmap does show up in the RStudio Viewer, however, if I try to include it in my Shiny application it does not appear. I've used the tmap_leaflet function, ...
1
vote
1
answer
1k
views
R - Leaflet WMTS layer is not rendering
I'm working on adding a WMTS layer to my R Leaflet map using this url:
https://mrdata.usgs.gov/mapcache/wmts?layer=alteration&service=WMTS&request=GetCapabilities&version=1.0.0
I add ...
0
votes
1
answer
2k
views
Saving a leaflet map as an html file
I've created a leaflet map of corn yield in Kansas using USDA NASS data. The problem I'm running into is exporting the leaflet into an html file using the command:
htmlwidgets::saveWidget(...
4
votes
1
answer
2k
views
How to assign popup on map polygon that corresponds with the country R leaflet
I am trying to write a script that would allow people to click on a country then a popup would appear and show the country's name and corresponding value. I have successfully created the map and the ...
2
votes
1
answer
6k
views
Interactive United sates county map using Leaflet
I have US county data set for all the sates. Providing only a sample how it looks like,
county state value_x
Adair Oklahoma 5
Adair Missouri 2
Adair Kentucky 10
Adair lowas 1
...
1
vote
1
answer
4k
views
Dynamic Color Fill For Polygon Using Leaflet In Shiny Not Working
My goal is to create a map that highlights states based on a dropdown menu. I have produced a map that works as intended for one of the metrics in the data set, but when I try and recreate the map in ...
4
votes
1
answer
6k
views
adding border to CircleMarkers with leaflet and R
I would like to add border to the CircleMarkers. I used the following code. I can't find any function to add black border to the stroke.
pal <- colorNumeric(palette = 'RdYlBu', domain = ...
1
vote
1
answer
311
views
Matching up data with a list of SpatialPolygonsDataFrame objects to run a choropleth map in leaflet
I'm teaching myself how to use mapping tools in R, and in this case I'm looking to set up a choropleth map of various countries at the respective regional levels based on the results from the mydata ...
4
votes
1
answer
6k
views
How to create leaflet markers colored by a numeric variable
I have a data frame with latitude, longitude, and a number. I want to add markers that are colored corresponding to these numbers. The numbers start at 1 and can be up to 100 or more.
Optimally, I ...
4
votes
2
answers
5k
views
How to add routes (polylines) between two markers in leaflet
I wish to add the polyline between these two point. How can I do this?
m <- leaflet() %>%
addPolylines() %>%
addTiles() %>% # Add default OpenStreetMap map tiles
...
0
votes
1
answer
143
views
Graphic drawing error in R with leaflet.minicharts library
I tried to draw a graph with the following code:
library(leaflet.minicharts)
library(leaflet)
data("eco2mix")
head(eco2mix)
View(eco2mix)
library(dplyr)
prod2016 <- eco2mix %>%
...
0
votes
1
answer
791
views
Merge csv and json file in Leaflet map - strange mistake
Folks, I have no idea what a heck is going on. I did enough leaflet maps before and never had such problem. Shocked a little bit.
Doing very simple stuff.
Cannot match .csv and .json file by a state.....