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
1 answer
filter data from API using selectInput in Shiny
since many days I can't solve my problem. At the beginning I get some data from API (I refresh API call every 5 sec to get the newest data). The data contain information about locations (lat and long) and some labels written to those locations. I…

boplight
- 93
- 2
- 8
0
votes
0 answers
Scroll bar and other content disappear on adding a leaflet map to a webpage (weebly)
I am trying to add a leaflet map to my website on weebly.
To do the same:
I published the leaflet map from R as a webpage (.html)
I added the html page on my git account here
I used the embed code option in weebly to copy the code from the git…

Vijay Ramesh
- 191
- 1
- 2
- 20
0
votes
1 answer
R Leaflet does not show legend when embedded in Shiny Dashboard
The map above renders perfectly fine in the following scenarios:
List item
RStudio Viewer
Shiny app
Shiny app using a minimal Shiny dashboard sceleton
When including the map in an existing, pretty complex Shiny dashboard, the looks as follows:…

Oliver
- 441
- 6
- 14
0
votes
1 answer
Could not find function "addSearchMarker"
I recently changed my server provider. I have a shiny app and I'm using leaflet.extras
I installed the library (I've checked it twice) but in the new server appears:
Error: could not find function "addSearchMarker"
I have exactly the same shiny…

Aleharu
- 170
- 1
- 9
0
votes
0 answers
RShiny reactive application error
I have a data frame as follows:
d <- data_frame(number = 1:4,
date = c(1600, 1700, 1800, 1900),
T_name = c("name1", "name2", "name3", "name4"),
casualties= c(18, 89, 97, 34),
m_name= c("name1", "name2", "name3",…

Mrmoleje
- 453
- 1
- 12
- 35
0
votes
0 answers
Remove processing percentages from knitr product
I am trying to remove the message seen in the picture. Part of my RMD code needs to contact a website and get data. The percentages from 1 to 100% keep showing up before the leaflet map. Ive searched through the forum, but cannot figure out…

drhodes
- 1
- 1
0
votes
1 answer
classifying circle markers by color in leaflet R and adding legend
I have a data frame like c = (lat, lng, decile) which decile has ten levels. obviously, by ggmap and ggplot we can plot some points in given (lat,lng) as if we set color argument to decile column in geom_point it will classify the points and add…

mjoudy
- 149
- 1
- 1
- 10
0
votes
1 answer
Different colors for flight routes leaflet with R
I am stuck with a problem with leaflet.
I want to plot flight routes (already done with gcIntermediate) but i want to colour the routes based on a factor variable (Status:cancelled,delayed).
I would want delayed routes colored with blue and the…

Gus CR
- 57
- 7
0
votes
0 answers
Selecting markers based on characteristics in R - Leaflet - Shiny
I am writing a Leaflet map in R and integrating it with shiny. I have three questions to ask and the code will be at the bottom with the problems highlighted:
On this map, I have random markers, each representing an aquatic environment. I also have…
user8944445
0
votes
2 answers
Shiny R dynamic heatmap with ggplot. Scale and speed issues
I am attempting to use some public information to produce a heat-map of Canada for some labor statistics. Using the spacial files from the census, and data from Statistics Canada (these are large zip files that are not necessary to dig into). Below…

Mitch14
- 3
- 1
- 4
0
votes
1 answer
Leaflet 2.0.0 choropleth not showing (dashArray error)
I'm using the leaflet and shiny packages to create interactive maps in a web browser (Chrome). When updating leaflet from version 1.1.0 to version 2.0.0 some choropleth maps stopped showing correctly: most if not all of the polygons failed to show.…

Willem
- 976
- 9
- 24
0
votes
1 answer
Shiny Leaflet map renders twice on switching input
I'm trying to produce a Shiny app with Leaflet that renders a choropleth map based on different input criteria. The map displays incidents of different types (input$type) and backgrounds (input$background). When additional types or backgrounds are…

cjb
- 48
- 6
0
votes
1 answer
Adding different pop-up iframes to multiple points
I'm building a map using the mapview R package following
this tutorial. Adding a different image to each point using popup=popupImage(images,src = "remote") works fine.
The issue is with iframe popups.
The example using popup =…

W148SMH
- 152
- 1
- 11
0
votes
1 answer
Hide mouse cursor and projection information in mapview in R
In mapview by default, the mouse cursor and projection information are shown in a box at the top of the map.
How can I hide this information box as it is by default in leaflet?
library(leaflet)
library(mapview)
leaflet(data = breweries) %>%
…

danceb
- 111
- 3
0
votes
1 answer
Blank popup in leaflet R
I am trying to map San Francisco's crimes in a map. The below code intends to map every crime (lat, lng) and when the marker is clicked, show the "category" column of the dataset.
Right now the below code shows a blank text box when I click the…

Daniel Vargas
- 980
- 2
- 13
- 21