This R package makes it easy to integrate and control the open-source JavaScript Leaflet software in R.
Questions tagged [r-leaflet]
499 questions
0
votes
0 answers
Shiny, Event reactive, running several functions
I am new in shiny, at the moment I am trying to set up a code where I can calculate activity clusters (through DBSCAN package) based on input variables: "eps" (minimum distances between points to be part of a cluster), "minpts" (minimum number of…

jorge
- 3
- 2
0
votes
1 answer
How do I make a reactive palette, which changes the colour of polygons on a map, when a different variable is selected in Shiny?
This is my first question so I apologise if its not up to scratch, but I'm stuck on an issue and I really need help please.
I'm trying to create a shiny app, which will allow you to select a species from a drop down menu, thereby changing the…

Ben Raby
- 28
- 5
0
votes
1 answer
Leaflet maps not working in R Studio after R 4.0.0 upgrade
I updated my computer the other day (R, R Tools, and RStudio), and leaflet stopped working.
When I run this example in the RGUI it's very slow, but eventually it opens a web page in a browser.
When I run it in R Studio it's very slow, eventually…

geneorama
- 3,620
- 4
- 30
- 41
0
votes
1 answer
React Leaflet - Amend X/Y LatLng to work from center rather than bottom left using CRS
Hey has anybody managed to change the X/Y axis start points in react leaflet? I need my co-ordinates to work from the middle of the map rather than the bottom left using CRS. Below is what I have so far, any point in the right direction would be…

BA1995
- 415
- 2
- 7
- 20
0
votes
1 answer
Custom palette with 2 colors and custom breakpoints in R leaflet - continuous variable
I am trying to create a custom palette with 2 colors(Red and Green) and custom breakpoints for my leaflet map. Currently I am using a single reds color palette.Mymap Which I have generated using colornumeric as
pal2 <- colorNumeric(palette = "Reds",…

user12907431
- 1
- 1
0
votes
1 answer
R-Leaflet Map - Help me to Combine 2 legends in R leaflet
I making an R Leaflet Map and I have 2 legend. how to combine them?
thanks
0
votes
0 answers
Is there any way that to display zip codes on the face of an interactive map created with R leaflet package?
I mapped overdose deaths of Philadelphia by zip code: https://6abc.com/5978005/
I wanted to display zip codes on the face of the map but couldn't figure out how to. This is what I wanted my map to look like:
Philadelphia Overdose Deaths Map
Is there…

Yun Choi
- 1
0
votes
1 answer
Can't filter markers in RShiny based on user input
I'm having a problem with my RShiny app not filtering the markers on the Leaflet map. What am I doing wrong? I'm having troubles identifying why this is happening. I did the same thing but in other ways, for example, use a switch based on input$df…

zueyl
- 11
- 4
0
votes
0 answers
Shiny selectInput doesn't react to tab selection
Here is my problem, I have a couple of tabs and I'm trying to update a map according to a choice in the selectInput() function.
The select option in inputSelect() is activated and points to Los Angeles which should activate the ObserveEvent() or…

Pablo Armendariz
- 67
- 1
- 7
0
votes
1 answer
How to add hyperlink into a popup in leaflet? (urls stored in table)
I have a table in which one of the columns is website urls, how do I add hyperlink with these urls in a popup in leaflet?
here is my code:
content <- paste(sep = "\n",
my_table$names,
…

LinearFragility
- 11
- 1
0
votes
1 answer
RPubs displays wrong colors for Leaflet heatmap
I am working on a leaflet heatmap in R. Everything works fine (see image 1), but when I publish it on RPubs, the color gradient of the density function is replaced by a black "cloudy" gradient (see image 2).
I know that this was an issue in other…

Boombardeiro
- 105
- 8
0
votes
1 answer
updatetabsetPanel from a leaflet popup link in R Shiny
Struggling R shiny beginner here. I'm having trouble grasping how to switch tabs in my two-tab sidebar (people | places) when a link in a label on a map in the main panel is clicked. I take it from looking at other, somewhat similar questions that…

Megan Cytron
- 85
- 7
0
votes
0 answers
Assigning "parent" color palettes in R
I'm working on creating a map using Leaflet. You'll notice in the first step, I break out each county into four different "regions". I then join it on another geo file of smaller territories within each customized "region." What if I wanted each…
user12061051
0
votes
1 answer
Specify point radius using Java Script htmlwidget in R leaflet
I am working from (very helpful) code provided here https://github.com/timelyportfolio/leaftime/blob/master/inst/examples/example_leaftime.R
to build a timeseries map using leaflet in R. I can't seem to figure out how to define the radius of each…

nrcombs
- 503
- 3
- 17
0
votes
0 answers
R: adding title to a leaflet map and Saving as PDF
What is please the simples way to add title to a leaflet map object?
I would like to add title to a leaflet map that I have and also wanted to ask about saving as pdf.
When saving as pdf (in example) the map if cut off and there is a lot of empty…

Petr
- 1,606
- 2
- 14
- 39