All Questions
1,850
questions
0
votes
1
answer
83
views
Having google search images as leaflet popup
Recently I have been working with the package 'leaflet' in R.
I have already created my interactive map and so on, but I would prefer to style it up a bit.
My program recieves a list of Cities ...
1
vote
1
answer
1k
views
Dynamic labels on leaflet map (shiny r)
So I've been trying to add a functionality on my leaflet map in Shiny dashboard where the user would be able to choose what the popup label would show through an input checkbox statement (in this case,...
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 ...
1
vote
2
answers
118
views
R flexdashboard leaflet for loop
For a leaflet app, I have created multiple groups from my 'sf' polygon object based on an attribute value. Then I'm trying to use a 'for loop' to add these groups to the map, which is where the code ...
0
votes
0
answers
203
views
Leaflet map tiles don't load properly when displayed in flexdashboard tabsets
If I toggle between the tabs in the html file rendered from the following Rmarkdown file, Leaflet map tiles don't load properly. When I resize the html file, tiles show properly, but subsequent toggle ...
3
votes
2
answers
1k
views
leaflet setView zoom level to non integer (decimal) value in R?
Using the leaflet R package, is there a way to set zoom to a non-integer (i.e. decimal) value?
That is, something inbetween these two zoom levels:
Example
As zoom moves from level 3 through to 4, ...
0
votes
1
answer
378
views
Update to "reverse order in R leaflet continuous legend"?
I have exactly the same question as this one from 5 years ago. I want to invert the scale of a continuous color scale in a leaflet choropleth created from R. I'm hoping that there is a better answer ...
0
votes
1
answer
85
views
R Markdown flexdashboard shiny leaflet app
I'm trying to create an interactive leaflet map dashboard using R markdown and shiny runtime. I need to select multiple values from two fields based on which my map will draw. This works so far, but I ...
0
votes
1
answer
1k
views
Leaflet change cluster marker color
I'm using ShinyProxy to deploy R ShinyApps.
I plot on a Leaflet Map marker point and cluster them because I have more than one (actually a lot) points for the same coordinates.
Each point can be in ...
1
vote
1
answer
553
views
Add a title to the Leaflet map
I have a simple question but still do not know how to find the answer to it. All I need is to add a title to the leaflet map. I do not need it to me on the map, just above it as in a usual ggplot map.
...
0
votes
0
answers
22
views
Make curved line between two points in R [duplicate]
I want to draw a curved line between two points (representing a flight route) in R. I have used the following code:
library(mapsapi)
library(leaflet)
# Your private key
key = "XXX"
# ...
0
votes
1
answer
77
views
Merge dataframe with spatial polygons dataframe to create a leaflet map
I have the df below:
df<-structure(list(Geography = c("Alameda", "Alpine", "Amador", "Butte",
"Calaveras", "Colusa", "Contra ...
1
vote
1
answer
307
views
R-leaflet - addControl() for specific layer only
I'm using leaflet::addControl() to add an information box to my 3 layered map, but only want it to appear on specific layer(s). By default, it appears on every layer, and doesn't seem to have any ...
0
votes
1
answer
45
views
Superscript in leaflet
How do you include a superscript in you leaflet legend title in R?
pal1 <- colorFactor("YlGn", domain = dataset$varaible, n = 3)
dataset %>% leaflet() %>%
addProviderTiles("...
0
votes
0
answers
35
views
Add D3 visualization to leaflet popup
I'm using R and leaflet to create a map.
leaflet() %>%
addTiles() %>% # Add default OpenStreetMap map tiles
addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R")
Then ...