Skip to main content

All Questions

Tagged with
9 questions with no upvoted or accepted answers
1 vote
1 answer
297 views

Plot choropleth from data.frame containing coordinates/zip code and id

I'm analysing real-estate sales for some N. American cities and am using k-means clustering on the data. I have seven clusters and for each observation in the cluster I have the latitude, longitude, ...
Gautam's user avatar
  • 2,713
1 vote
0 answers
131 views

Map (with geojson) instead of Leaflet map

I am doing a poster for class. Everything was ok, I created a descent map for showing some data in New York, using Leaflet. jpal <- colorRampPalette(c("#03B9FF", "#801515")) # qpal <- ...
Anakin Skywalker's user avatar
1 vote
1 answer
430 views

reactive selection of json property in R for leaflet without shiny

With the following minimal example in R (Markdown) it's possible to select between two different topojson properties and draw reactively a different leaflet choropleth map according to the selection ...
Marcel Stadelmann's user avatar
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 ...
analytics3345's user avatar
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: ...
Carlos's user avatar
  • 391
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) ...
Gilad's user avatar
  • 21
0 votes
1 answer
64 views

can we popop the name of the place when we use addGeoJson in R

I'm using addgeoJson function for the india map. I have data that I got it from here https://gadm.org/download_country.html for example I'm using this data This is a json file and I read that json ...
Siddhant Singh's user avatar
0 votes
1 answer
400 views

Cannot load valid json/us-states.geojson for Chropleths map using Leaflet and R. Loving R and Leaflet but stuck

Learning R for mapping with Leaflet. Seems like a great guide here, but I’m stuck with a Chropleths map. https://rstudio.github.io/leaflet/choropleths.html Download the USA geoson file. It’s in my ...
Edward Potter's user avatar
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 ...
Philippo Storino's user avatar