All Questions
40
questions
1
vote
1
answer
466
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
824
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
373
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
695
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
349
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
984
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 ...
1
vote
1
answer
911
views
Create smallest grid in leaflet R
I want to create the smallest grid as possible in leaflet R. How should I go about it ?
My current code is :-
leaflet()%>%
addTiles() %>%
setView(lng = 101.9758, lat = 4.21053, zoom = 10)) %&...
1
vote
1
answer
129
views
Extracting Intersect Values in R
I am wondering if there was a specific way that would allow me to extract the sa3_code_2016 from the QLD sf object and add each corresponding value to the test dataframe.
Solved, needed to assign ...
2
votes
0
answers
176
views
How can I use Leaflet (in R) to smoothly pan/zoom from one point to another point?
I am using flyTo() in leaflet (R), but I want to avoid how it zooms all the way out to world view before zooming in to the specified lat/lon. Is there a way to set the start point of the flyTo to ...