All Questions
26
questions with no upvoted or accepted answers
3
votes
2
answers
1k
views
how to plot multiple isochrone on leaflet map in R
i can plot one isochrone in R at a time using Rmapzen package with this code, each isochrone is generated as a sp object, is there any way to create multiple isochrone on the same map like the ...
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
0
answers
91
views
Map Australia - no oultine
Got code from here:
Map Australian cities - R spatial
But when I run it, it gives the map shown:
library(maps)
df <- world.cities[world.cities$country.etc == "Australia",]
library(leaflet)
## ...
1
vote
0
answers
541
views
leaflet minichars group argument
I would like to ask,
Is there a group arguments for function from (leaflet.minicharts)? I am using function addFlows function and I am tryng to insert it into layer control, however since it doesnt ...
1
vote
0
answers
661
views
How to draw a buffer and calculate statistic based on map click with Leaflet R in Shiny
Working code:
ui <- shinyUI(bootstrapPage(
leafletOutput("map")
))
server <- shinyServer(function(input, output, session) {
## Make your initial map
output$map <- ...
1
vote
0
answers
510
views
Leaflet choropleth maps in shiny - unable to use addPolygons function properly
I am new to writing shiny apps and new to using the leaflet package. I am trying to create a shiny app which will get user inputs and plot a choropleth map based on the aggregated values of the ...
1
vote
0
answers
234
views
Error In UseMethod("doResolveFormula")
I'm using the following code to put three different types of markers for each level of a categorical variable RSPM.
leaflet(df) %>% addTiles() %>%
addCircleMarkers(~Long, ~Lat, popup = ~as....
0
votes
0
answers
53
views
Show the aggregate value on markerClusterOptions in R
I want to do a map in R, that will show the points in clusters when you zoom in/zoom out and in the same time show a aggregate value.
Now I have this code:
m <- leaflet(acdt_1, width = "200%&...
0
votes
0
answers
163
views
Add Polygon Layers to Leaflet Map (with labels and legends)
I am trying to combine 4 leaflet maps into one, where you can filter the layers using addLayerControl. Each layer has popups when you hover over the polygon with the corresponding variable (numeric) ...
0
votes
0
answers
40
views
How to reduce incremental zooms in leaflet?
I am making maps in leaflet and cannot change the zoom increment for some reason.
I don't have the option to use
var map = L.map('map', {
zoomSnap: 0.25
});
I also don't have these functions ...
0
votes
1
answer
2k
views
Error in UseMethod: no applicable method for 'metaData' applied to an object of class "NULL"
I'm trying to add different icon to the markers which I'm trying to show. I have different category like this
category <- data() %>%
dplyr::select(category) %>%
distinct()
and it looks ...
0
votes
0
answers
53
views
Tiny shiny app to monitor pollinators: leaflet map rendering locally but not rendering online
I work for a biodiversity monitoring project and I am trying to build a shiny app to better organize our fieldwork. I am basically trying to publish a map of our study area overlaid with a grid (our ...
0
votes
0
answers
504
views
Add axis to leaflet map
How can you add an x and y axis to a leaflet map figure -- in the case of a map how to add the longitude and latitude?
For the figure below, how can axis be added please?
library(leaflet)
leaflet() %&...
0
votes
0
answers
727
views
Adding circle markers on leaflet R on to a map already plotted
bins <- c(0,10,20,30,40,50,Inf)
pal <- colorNumeric(
palette = c('Grey', '#C9E1F9', '#BCD2E8', '#86ACC6', '#73A5C6', '#528AAE', '#2E5984', '#1E3F66', '#152B46'),
domain = ar_prov_objetivos$...