Skip to main content

All Questions

Tagged with
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 ...
Sean McKenzie's user avatar
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=...
marine-ecologist's user avatar
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 ...
firmo23's user avatar
  • 8,306
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 ...
lget's user avatar
  • 26
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 ...
user2813606's user avatar
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 ...
Pedro Lima's user avatar
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 ...
AleksP's user avatar
  • 1
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 =...
metamorporpoise's user avatar
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 ...
Ed_Gravy's user avatar
  • 1,995
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 (...
Ed_Gravy's user avatar
  • 1,995
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 (...
Xavier's user avatar
  • 139
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, ...
Biased_Observer's user avatar
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", &...
KalsaraL's user avatar
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 ...
Biased_Observer's user avatar
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 ...
Ainhoa's user avatar
  • 425

15 30 50 per page