All Questions
27
questions
0
votes
1
answer
109
views
Handling polygon edits in shiny app using leafpm
I am working on a shiny app that lets users interactively draw polygons on a leaflet map using the "leafpm" package, calculate forest biometrics, report them, and make those polygons ...
0
votes
0
answers
47
views
pkgdown::build_article() fails with large chunk sizes using sf and leaflet, no errors reported when setting quiet=FALSE
pkgdown::build_articles() fails with large chunk sizes
rmarkdown::render() works fine
article fails to render any code or text beyond the failed chunk
no errors are reported with build_article(quiet=...
0
votes
1
answer
139
views
Click on a polygon of a leaflet map and subset the same dataset which is displayed in table
I have the shiny app below with this sf object and I want to use the leaflet package to create an interactive map with clickable polygons. When a user clicks on a polygon, the app will save and ...
0
votes
1
answer
313
views
How to make leaflet markers fit within sf polygons for any zoom level?
How can I dynamically size leaflet markers to fit within sf polygons for any zoom level?
I have a series of sf polygons similiar to the nc (North Carolina) example below. Each of these polygons has ...
1
vote
1
answer
599
views
Calculate average distance between all points in radius and reference point
I have spatial data and would like to create a new column in my dataframe that calculates the average distance to neighboring coordinates within a radius of my choice.
I found this code that gets me ...
1
vote
1
answer
47
views
Shiny slide bar malfunctioning - sliderInput()
I am very new on R Shiny, but I do have a question rerarding the sliderInput().
I am able to make the bar "work", but apparently it is not understanding the values min() and max() values ...
0
votes
1
answer
761
views
How to visualize sfc_Multipolygon in Leaflet R?
I am trying to visualize countries as members of international organizations (EU and Commonwealth) in leaflet. I managed to plot them with base function plot() but in leaflet, technically, this should ...
2
votes
1
answer
309
views
Issue plotting generated polygon grid to leaflet
I am trying to create a polygon grid to plot in leaflet, but am running into an error that I cannot seem to figure out:
library(leaflet)
library(raster)
library(sf)
library(rgdal)
r <- raster(ext =...
0
votes
1
answer
225
views
Shiny Leaflet not being able to pick user uploaded shapefile(sf_object) data path
I am creating a shiny app that:
Allows the user to upload a shapefile (sf_object) "filemap" (I am assuming sf wants all the files associated with a shapefile exported from ArcPro).
Based on ...
0
votes
1
answer
182
views
Object Temp_Map not found while trying to render a Leaflet Map
I know this question has been asked a lot of time, but every question varies according to the code/purpose. That being said I am creating shiny app that:
Allows the user to upload a shapefile (...
0
votes
3
answers
45
views
Combine coordinates with same custom key in R
I web-scrapped multiple store locators, and now I want to find all the brands that each store has.
As every brand has slightly different coordinates, I combined the data by creating a custom key (...
1
vote
1
answer
391
views
Is it possible to filter a simple feature (sf) object using selectizeGroupUI in R shiny?
I'm trying to build a Shiny app containing a leaflet map showing movement paths, that can be bidirectionally filtered using two other columns in the dataset which contains the geometry data.
To do so, ...
1
vote
1
answer
95
views
Add color segments to location on a map plot by using lat and lng coordinates in R
My data set has 4 columns which are station_name, station_lat, station_lng, and count. This is the example of my data set.
start_stations <-
data.frame(
station = c("StreeterDr", &...
1
vote
2
answers
308
views
How to create multiline string sf object to create a time slider in Leaflet map
I'm trying to create a leaflet map which shows different movement paths for different months of the year. I.e. I've got a dataset showing multiple journeys per month and I want to display the movement ...
3
votes
1
answer
353
views
Problem joining different SpatialPolygonsDataFrame objects in R
I have a shape file of towns in the north of Spain that I have to join into groups (municipalities or comarcas in Spanish). I've used st_union from the sf package to join them successfully (and each ...