All Questions
41
questions
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 ...
0
votes
0
answers
45
views
Why unexpected bubble shows in my R leaflet map (leaflet.minicharts)?
I plan to make a map which can show the transition of entities and their capacity by years by using R leaflet.
In this small example, 2017 only have few entities and lower NameplateCapacityMW. In ...
7
votes
2
answers
3k
views
How can I remove attribution in leaflet map in R
I am working on a shiny application in R which involves maps generated with the leaflet package. I would like to remove the attribution from the map, or at least reduce the visible text.
I tried to ...
2
votes
1
answer
324
views
display map just once (leaflet and shiny)
I am new to Shiny, I have gps data and would like to display it nicely on a map. I need to do an animation that depends on time - basically, track an individual over time on a map. The problem that I ...
1
vote
0
answers
221
views
Choropleth change polygon colour based on layer in R leaflet
I have a large number of polygons (>5000 to cover the UK) that even simplified cause quite a large map file. I also have a set of information about each of these polygons with a value per week over a ...
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 ...
1
vote
2
answers
373
views
How to plot the whole data of dataframe in leafletProxy()?
I am working with R in RStudio and created a shiny dashboard. Within the dashboard I am using the leaflet() function to plot a map. Now I am trying to put markers on the map which shows the crimes in ...
1
vote
0
answers
72
views
Different colour markers or ID numbers for different coordinates with legend in leaflet
I have a data set on 44 health facility locations (Longitude and Latitude), facility name, type and ID.
The task I need to execute are:
1a) I want to map the facility locations each having different ...
0
votes
1
answer
482
views
Remove gray/grey shadow from Leaflet map in R
Folks, I have a problem. My map has an unusual gray shadow.
I use shapefiles
countries <- readOGR(".","ne_50m_admin_0_countries")
or geojson
url <- "https://raw.githubusercontent.com/...
1
vote
0
answers
1k
views
How to plot a large rasterfile quickly in R leaflet with shiny
I obtianed a large rasterfile (.asc file), which I can import in R and plot on a leaflet map. Because the file is pretty big, it takes about 40 seconds before the rasterimage is plotted on the basemap....
2
votes
0
answers
656
views
How to select superimposed circles in R leaflet::addCircles?
I am using the leaflet package for R to plot circles in sizes and colors that are determined by a set of variables. It works well, but not all circles can be selected with the cursor. I cannot show ...
0
votes
2
answers
814
views
leaflet map of the world - exclude Antarctica
The code below is reproducible - it builds the map of the world using leaflet.
I am really not interested in Antarctica and I am more interested in Scandinavia :)
Any way to cut Antarctica or at least ...
2
votes
2
answers
4k
views
Custom markers on Shiny leaflet map
I need to map on Shiny leaflet map points based on their type - four types in total with the same marker of a different color.
I checked this:
https://rstudio.github.io/leaflet/markers.html
This ...
1
vote
1
answer
2k
views
Leaflet and Shiny - formal argument "selected" matched by multiple actual arguments
Folks, I almost completed my first Shiny app ever, but stumbled.
Checked all here https://stackoverflow.com/search?q=shiny+map+r
My code:
# Packages
library(shiny)
library(dplyr)
library(leaflet)
...
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 ...