Questions tagged [r-leaflet]
This R package makes it easy to integrate and control the open-source JavaScript Leaflet software in R.
r-leaflet
703
questions
0
votes
1
answer
64
views
Ignoring prepended content; prependContent can't be used in a Shiny render call
I have a shiny app with lots of points that need to be selected to display data in a table. I love the functionality displayed in this question here. Unfortunately implementing this in shiny produces ...
0
votes
0
answers
28
views
Trouble with R Shiny app, leaflet map using tidygeocoder timing out
I am making a shiny app where you can enter any address and it should find the nearest airport to that address and also the nearest office (of four) to suggest a best path. I have a sf file for the ...
1
vote
1
answer
96
views
On map click, copy coordinates to clipboard
I would like this app to immediately copy to clipboard the coordinates upon click.
In other words, I want to get rid of the copy button.
If this is not possible, I would like to have the copy button ...
0
votes
1
answer
50
views
How to send less data to the client with Shiny/leaflet
I'd like to host a page that visualizes a choropleth map at the Census Tract level in the US. I think because of the fidelity of the data necessary, it is probably best to implement this as some kind ...
0
votes
0
answers
51
views
All points are not reflected on the map in R
I have data with 209 FEATURES points like this in R.
> demo
Simple feature collection with 209 features and 3 fields
Geometry type: POINT
Dimension: XY
Bounding box: xmin: 129.9662 ymin: 31....
0
votes
1
answer
154
views
Pie charts on leaflet map
I have a very simple dataset.
df <- data.frame(lat = c(47.4979, 47.4970),
lon = c(19.0402, 19.0408),
fel = c(60, 30),
le = c(40, 70))
I want to ...
0
votes
0
answers
46
views
Interactive map with R shiny
I have developed a Shiny web application that displays an interactive map where you can select a weather station and a year, and then it generates an Excel file containing the meteorological data for ...
0
votes
0
answers
70
views
I would like a table where cells are colored (defined by values)
Suppose that I have a dataset with firms and the associated addresses. In my analysis I am putting them into different groups. So, my dataframe, which I call ResultPlot, could look like this:
Name ...
1
vote
1
answer
37
views
Using the R Shiny to show all data points as the default
I want to map the spatial distributions of some data points using R Shiny. When I add the filter for different regions into the R script, it cannot show all the data points for all the regions at the ...
1
vote
0
answers
33
views
Error with the timeslider in the leaftime package in R
I am working with leaftime in R to try and create a map with a timeline that displays data using markers. I am experiencing what I think may be a bug in the package, where the date displayed on the ...
0
votes
1
answer
95
views
How to show multiple roads using leaflet in R
I am working on program connected to Traveling Salesman Problem. I use R and I load data where is lon,lng and calculate distances using osrm package. Like this:
distance_matrix <- matrix(NA, nrow = ...
0
votes
1
answer
34
views
Color not appearing on legend
I am creating a very simple map, using this code:
library(dplyr)
library(leaflet)
Rwanda$Quartile<-cut(Rwanda$lpro12x,quantile(Rwanda$lpro12x),include.lowest=TRUE,labels=FALSE)
color_function <-...
0
votes
1
answer
41
views
Can't add WMS layer to R Leaflet
I want to make a leaflet map in R with this wms servic : https://data.geopf.fr/wms-r/wms?VERSION=1.3.0
It works well in QGIS but not with addWMSTiles.
library(leaflet)
layer="ADMINEXPRESS-COG-...
0
votes
1
answer
57
views
How to show path on map with leaflet?
I found this solution and try it, How to show path and distance on map with leaflet, shiny apps?
but when I run the code
library(leaflet)
library(osrm)
route = osrmRoute(c(115.6813467,-32.0397559), c(...
0
votes
1
answer
74
views
Read shapefile from Dropbox URL into Shiny App in R?
I have a shapefile stored in a Dropbox folder that I would like to display in a Shiny App. I am able to download the .zip file from the Dropbox download URL, unzip the file, then read the .shp file ...