All Questions
40
questions
0
votes
1
answer
487
views
How to find correct projection of the shapefile data for leaflet map in r?
I am new to geo spatial data & trying to create choropleth map using leaflet & shapefile.
I have tried to plot the data on leaflet map but getting an error: Error: Must supply x/y attributes ...
0
votes
1
answer
4k
views
How to trouble shoot "Don't know how to get path data from object of class standardGeneric" with leaflet
I am trying to create a map showing generation capacity by county with leaflet. There can be multiple generating units per county, but I thought that would not be an issue for mapping county capacity. ...
0
votes
2
answers
1k
views
R Leaflet Limitations? Too much data?
I found a workaround for this that actually worked better for the project I was working on, but I'm still curious.
I was creating some maps in R using the leaflet package. The code ran well, but I ...
0
votes
1
answer
112
views
changing data based of leaflet shiny input
I would like to change data to plot on a shapefile (world) based on the year selected as input. According to you, which one is wiser:
Setting the data to wide (data_2020, data_2019, data_2018...) and ...
1
vote
1
answer
525
views
Interactive choropleth map with leaflet inaccurately mapping data
First post, I'll try to do my best.
I'm trying to make an interactive choropleth map with leaflet in R, based off this
tutorial. It all goes great until I compare the data represented on the map with ...
0
votes
1
answer
386
views
Add `RasterLayer` to `addLayersControl` in leaflet
I have to RasterLayer-objects (raster1 and raster2) in R. And I want to add them both to a leaflet-map. I also wanted to have the option to show or hide them. So I thought I'd add them with their ...
0
votes
1
answer
207
views
Combining Spatial Dataframes with different columns
I have three different spatial dataframes that I'm trying to combine as one big one. The reproducible code looks like this:
library(sf)
library(sp)
library(leaflet)
library(tigris)
library(rgdal)
...
4
votes
2
answers
4k
views
Converting data.frame to SpatialPolygonsDataFrame
Here is the data for reproducible purposes:
structure(list(countyfp10 = c(1, 1, 1, 1, 3, 3, 3, 3, 5, 5, 5,
5, 7, 7, 7, 7), id = c(7417, 7418, 7419, 7420, 7421, 7422, 7423,
7424, 7425, 7426, 7427, ...
0
votes
1
answer
43
views
Change map colourfill based on user selection
It's been a while since i'm having this problem. My current shiny app is not able to communicate with the user selection. It is supposed to show a colour fill variation across different region when a ...
4
votes
1
answer
958
views
How to rotate symbols (representing spatial point data) based on feature with tmap and sf?
I want to represent 2 ships on a map in an interactive way (leaflet based method) with some of their metadata as well. Naturally, metadata of a ship usually contains the heading of the vessel and the ...
5
votes
1
answer
5k
views
time slider with leaflet/ R
I am currently working in R and I am using leaflet package to vizualize geospatial data, I would like to make an analysis over the time and display my map given a time slider
In R there is the ...
0
votes
1
answer
2k
views
Leaflet (R) addPopups: coordinates/properties
I'm fairly new to handling spatial data and leaflet in general. I'm having difficulty creating a popup for my map. Basically what I want in the popup is the coordinates of my polygon and one of the ...
1
vote
0
answers
171
views
How to match color scheme of spatial lines, circle markers in R leaflet
I'm wondering how I can color GPS locations and tracks that are created from a sequential order of points in leaflet. I've figured out how to color the circle markers by a grouping variable (TagID), ...
1
vote
2
answers
664
views
How to make dynamic labels from a spatial polygons dataframe for Polygons on a Leaflet map in R
With this script, I am displaying a map with three isochrones. I would like the map to have labels containing the max time represented by each isochrone/polygon.
How should I reference the spatial ...
0
votes
1
answer
799
views
Empty SpatialPolygonsDataFrame object passed and will be skipped at Shiny
I am sorry for cumbersome code in advance, but need some good help.
I will start from printscreens
So, 5 out of 6 filters in my Shiny app work perfectly:
The problem arises when I try to create the ...