Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
110 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
1 answer
60 views

How to use shiny reactive functions for plotting an sf object that mapped a numeric column based on its quantiles

I am trying to use select input that filters the data based on a categorical column, income_grp in my example, and then use geom_sf to draw a map of a numerical column like pop_est with color ...
rez's user avatar
  • 338
0 votes
1 answer
243 views

‘Invalid color name error’ when using multiple color palette as a nested list in shiny selectInput for sf plot function

Could someone help me understand what’s wrong with the below code. I would like to use two categories of color palette, single and multiple hue, for pal argument in the plot function of sf. Thanks in ...
rez's user avatar
  • 338
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,276
0 votes
1 answer
59 views

Shiny for choropleth map with two selection lists

I have df, and I wanted to create a shiny application that gets updated based on the value of two selection lists, one for picking an indicator, and the other for choosing the subgroup. I also create ...
rez's user avatar
  • 338
0 votes
1 answer
316 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
0 votes
2 answers
126 views

Custom Tmap palette based on results

I'm trying to create a custom palette for tmap in R where the colours represent a result from a general election. In the below photo you can see my plot doesn't have a palette attached and is using ...
Oceanous'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
0 answers
46 views

Shiny / Flex-dashboard Reactive Polygon Creation

This might be one for the GIS board, but any help is appreciated. I suspect it is a lack of knowledge around how Shiny works in flex dashboard. I have a map that will take a lat/ and long point (as ...
Jacob Baisley's user avatar
0 votes
1 answer
228 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
1 answer
426 views

Load data into a R shiny app depending on selectInput

I have an app which is supposed to show a map of the crop types of a certain district. The data are geometry data (.shp files) which I want to load after the district was choosen. Whether the data are ...
HedwigSchnee's user avatar
1 vote
1 answer
151 views

{sf} monitor rowwise progress of reading shapefile with sf::st_read

I'm trying to monitor the progress of reading a shapefile (.shp) with sf::st_read. st_read offers five class-specific methods to dispatch: # > methods(sf::st_read) # [1] st_read.character* ...
user avatar
1 vote
1 answer
3k views

R & Postgis: ERROR: Geometry type (Polygon) does not match column type (MultiPolygon)

The code below enables me to add polygons I draw on a leaflet map to tables in my database. However I have some difficulties since the geometry column of my table is called "geom" and the ...
zakros's user avatar
  • 129
0 votes
0 answers
221 views

Error in sample.int(length(x), size, replace, prob) : invalid first argument in Shiny app

I'm trying to run data in RDS format in the Shiny app but I keep getting this error Error in sample.int(length(x), size, replace, prob) : invalid first argument When I tried to run the data as CSV ...
Reta's user avatar
  • 373

15 30 50 per page