All Questions
26
questions
2
votes
2
answers
4k
views
R geojson feature display with leaflet
I have a GeoJSON map that is rendering fine with leaflet and open street map tile from Rstudio IDE locally, however the map doesn't display the features and properties (embeded in the jeojson file) ...
0
votes
0
answers
3k
views
R Leaflet choroplete map with timeslider?
I got time related data (7 years) displayed in a choropleth map, using R and Leaflet-for-R-package. Therefore use a kmz-file for geometry and csv data for attributes. So far I tried it with data for ...
4
votes
1
answer
2k
views
Trouble reading in geojson/json file into R for plotting on map
I'm trying to read in a json file which contains polylines into R for plotting in leaflet or ggmap. The file is in the geojson format.
The file can be found at: http://datasets.antwerpen.be/v4/gis/...
7
votes
4
answers
7k
views
Zooming into State to view ZipCode using R Leaflet
I am using R leaftlet package to create a interactive choropleth of the U.S.
There are several tutorials online and I am able to create interactive state level map with popups and zooming. Also I was ...
5
votes
1
answer
6k
views
How do I use the addGeoJSON() feature in R for Leaflet?
Could someone please explain how the addGeoJSON() feature works in R, I cannot make sense of the documentation.
?addGeoJSON => (map, geojson, layerId = NULL)
What is geojson and layerId?
I was ...
1
vote
0
answers
255
views
Reading geojson file in R
I have converted .shp file into geojson file using rgdal, httr, leafletR packages
file <- "province" # shp file name
arg_file <- readOGR(dsn = ".", "province") # destination require . to load ...
1
vote
1
answer
220
views
R rMaps geoJson function not plotting
I have a JSON route coming from ESRI service. I try to plot the route using geoJson using rMaps. The only output I get is the map but not the plot from the polygon.
This is the code:
require(rMaps)...
1
vote
1
answer
2k
views
leaflet-shiny with country geojson layer
I'm using R + Shiny to display a leaflet map. I would like to add several countries (in the form of layers) to this map and I have looked around and found this websites which offer the GEOJSON data:
...
4
votes
3
answers
1k
views
I am trying to make an interactive map using leafletR package according to a ZevRoss blog. But there is an error in the code
The ZevRoss blog is as follow:
http://zevross.com/blog/2014/04/11/using-r-to-quickly-create-an-interactive-online-map-using-the-leafletr-package/
The code with error is:
# ----- Write data to ...
1
vote
0
answers
215
views
Plot polygons with different colors using rMaps
I'm trying to plot polygons on a map using rMaps and fill the polygons with different colors.
I tried unsuccessfully change the 'color' and 'fillcolor' attributes:
require(yaml)
library(rCharts)
...
0
votes
1
answer
2k
views
add multiple polygons to rCharts leaflet map
When I try to add more than one polygon to a leaflet map with rCharts using the map$geoJson() function, only the last polygon appears on the map. The other ones are not displayed. Any idea on what I ...