All Questions
44
questions
0
votes
1
answer
94
views
Make smooth contours in when using leaflet and tmaps in R
I am using the script below to make to make interactive leaflet map. However, the contours have sharp changes and are not smooth and round. How can I edit this code to achieve that?
The data and code ...
0
votes
0
answers
183
views
Toggle Legends in leaflet map generated in R based on base layer selected
I have created a polygonal choropleth map in leaflet that toggles different geometries and legends on the regional and county (parish) level. The code works, but I made the addLayersControl toggle on ...
0
votes
1
answer
49
views
Combine units in a shapefile while keeping others granular in R
I have a 5-digit postcode shapefile for Germany. Big number 1-digits postcodes are similar to German states. I read shapefile data with rgdal thus having a SpatialPolygonsDataFrame. I have only data ...
1
vote
1
answer
459
views
Outline multiple polygons R leaflet to show territories
I am using leaflet in R to make maps with layers. I have the basics down but am new to geoJson and would like to be able to show grouped territories outlined. For example, I would like to group “...
0
votes
1
answer
1k
views
R: Converting Data Frames into Shapefiles
I am working with the R programming language.
Suppose I have the following shapefile:
library(sf)
library(leaflet)
library(leafgl)
library(colourvalues)
library(leaflet.extras)
nc <- st_read(...
0
votes
0
answers
42
views
How to increase popup size in the R Leaflet library as per the count?
This is the dataframe named 'sellers_state_name_df' ->
Dataframe
What I want is to increase the popup size of the circles as per the 'Freq'. For e.g Acre (1) circle should be smaller in size than ...
0
votes
2
answers
93
views
R Displaying Points Twice?
I have this code for an interactive map in R:
library(leaflet)
library(inlmisc)
Long = rnorm(1000, -71, 0.5)
Lat = rnorm(1000, 42.3, 0.5)
loc = rep("loc", 1000)
Name = rep("Location&...
4
votes
1
answer
816
views
Customizing Leaflet Map Icons in R
I started to learn how to use the search features in leaflet maps - below is a leaflet map which allows you to search for a city (i.e. single search term):
library(leaflet)
library(leaflet.extras)
...
1
vote
1
answer
70
views
Replacing "rdgal" with a Data Frame in R?
I found this R code (Search button for Leaflet R map?) and was able to make a interactive map in R:
library(inlmisc)
city <- rgdal::readOGR(system.file("extdata/city.geojson",
...
1
vote
1
answer
366
views
Simulating Geographical Points Around the Eiffel Tower
The coordinates of the Eiffel Tower are (Longitude: 48.8584° N, Latitude: 2.2945° E). I am interested in randomly generating 100 points that are located within a 12 KM radius of the Eiffel Tower. In ...
1
vote
0
answers
690
views
Learning How to Use Shapefiles in R
I am trying to learn more about "shapefiles" and how to plot them in R. Ideally, I would like to make a "leaflet map" (interactive or static) that looks something like this: https:...
1
vote
1
answer
345
views
R: Joining Maps Together
I am working with the R programming language.
Using the "leaflet" library, I made the following 3 maps:
#load libraries
library(dplyr)
library(leaflet)
library(geosphere)
library(leafsync)
...
5
votes
2
answers
1k
views
R: Connecting Dots on a Map
I am working with the R programming language.
Using the "leaflet" library, I made the following map for these 5 cities:
library(dplyr)
library(leaflet)
map_data <- data.frame("Lat&...
1
vote
1
answer
966
views
R: Making More "Noticeable" Labels in R Leaflet map
I made the following map in R (from a data frame with 5 points ordered from "1" to "5"):
library(dplyr)
library(leaflet)
map_data <- data.frame("Lat" = c(43.6426, 43....
1
vote
1
answer
124
views
Map vector group in specific order - R leaflet
I have a shapefile with polylines of routes in different years. Here is an example data shapefile with routes in the year 2000 and year 2013. I would like the map to show the older routes at the top ...