Skip to main content

All Questions

Tagged with
1 vote
1 answer
26 views

How to update fillColor to selected input in shiny and leaflet map

I am having a difficult time transitioning my map from static to reactive so a user can select what data they want to look at. I am pretty new to R so please bare with me but I think I figured out how ...
Han-Jiun Ke's user avatar
1 vote
1 answer
25 views

How to assign a leaflet layer to a group, when that layer is created by an extension of leaflet?

This R code creates a leaflet map with two base layers. The user can toggle between the two layers. leaflet() |> addTiles(group = "group 1") |> addProviderTiles(provider = ...
John J.'s user avatar
  • 1,676
1 vote
1 answer
23 views

How to add markers in a Leaflet minimap?

I have created an application in Shiny which allows for selecting a place and then displays a datatable with information and a marker at the corresponding position in the map. The marker is set in ...
Raq's user avatar
  • 97
-1 votes
0 answers
20 views

`colorNumeric()`: ! Wasn't able to determine range of domain

I am trying to read a shapefile and assign colors using leaflet colorNumeric() to variable V4 which are numeric but discontinuous. It has values 1 to 16 and then 74 to 95 with some missing values in ...
vp_050's user avatar
  • 508
1 vote
1 answer
25 views

How can I use the AllMaps leaflet plugin with R?

Leaflet allows one to use custom map tile URLs. Here's an example from the docs. library(leaflet) leaflet() %>% addTiles() %>% setView(-93.65, 42.0285, zoom = 4) %>% addWMSTiles( "...
John J.'s user avatar
  • 1,676
1 vote
1 answer
39 views

Table Display based on filter selection and custom polyline click

I have a shapefile with segments of varying lengths. For each segment, I have attributes including segment id, year, time period, and other variables like traffic volume. Right now a user is able to ...
Krishnan's user avatar
  • 1,287
2 votes
0 answers
31 views

How to dynamically update Leaflet markers with custom icons based on slider input?

I am working on a Shiny app where I want to display a Leaflet map with markers that have custom icons. The icons should change based on a year selected using a slider input. Specifically, markers ...
Quinn Van Konynenburg's user avatar
1 vote
1 answer
24 views

How to Separate Lines for Labels?

I have the following code in R Shiny for a data dashboard I'm working on, but I want the "Median Carbon Level" to be on a seperate line than the "Percent Increase from 2015" ...
Quinn Van Konynenburg's user avatar
0 votes
0 answers
14 views

R Markdown doesn't plot leaflet map in Word document

I'm working on a Word document with a leaflet maps. In RStudio the leaflet maps works good, but when I Knit my Word document with Rmarkdown, no map appears in Word. I recently change my computer and ...
Camilo Montes's user avatar
0 votes
1 answer
65 views

Connecting R Leaflet to esri vector tile service

I'm building a Shiny leaflet application that I want to use a ESRI vector tile map from my organization for. I can see that leaflet connects to it as the attribution is accurate. However the tiles ...
PhDavey's user avatar
  • 416
0 votes
0 answers
55 views

Why are my leaflet points stuck to the map edge?

I try to plot transit stops on a leaflet map, indicating local clustering ("LISA"), based on Moran's I. The map is embedded in an R markdown file. I've successfully done that with polygon ...
fluegelrad's user avatar
0 votes
1 answer
39 views

The position of map (leaflet) not updating from dropdown user input R

I have a global variable called map_status, selectedDropdownData. mapStatus <<- list(map_lng = -110.9747, map_lat = 32.2226, map_zoom = 12) selectedDropdownData <<- NULL I currently ...
Kirthana's user avatar
1 vote
1 answer
40 views

Click on a subregion and autoscale zoom to fit the subregion

I'm developing an R Shiny app and want to have an interactive map, where the user clicks on a region (or subregion), and the map automatically zooms and scales the view to fit the selected region. ...
pseudotsuga's user avatar
0 votes
1 answer
52 views

Problem with deploying shiny app/leaflet to shinyapps.io

I am trying to deploy a very simple app to Shinyapps.io. My app is the following, and the structure of the folder is mines_peru/app.R (the file below) and mines_peru/data/clean_active_mines.RDS. ...
catatau's user avatar
  • 55
1 vote
0 answers
36 views

Render Leaflet Map Layers Asynchronously in R Shiny

I am trying to reduce the loading time of a Shiny App that renders a map via the Leaflet package utilizing large sf object datasets. Much of the slow loading time is attributable to the actual ...
AJJJ's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
44