Skip to main content

All Questions

Tagged with
0 votes
0 answers
210 views

Issue add icon and legend with leaflet in r

I try to reduplicate the below code in r markdown, but meet: "Error in htmltools::tags$polygon(id = "diamond", points = draw_diamond(width = width, : attempt to apply non-function"....
Feixiang Sun's user avatar
0 votes
1 answer
36 views

is it possible to add OCHA icon to leaflet map in r?

I am working on a leaflet map for humanitarian purposes, therefore I need to use the OCHA icons for objects on my map. but I couldn't find any library to insert OCHA icons to the R environment. any ...
Jawad's user avatar
  • 31
1 vote
0 answers
269 views

How to make control polygon layers using check box inputs in r shiny

I have an interactive map containing several polygon layers. To turn on/off those layers, we can use addLayersControl() function. However, I'd like to have my own checkbox table out of the map. I ...
Morteza's user avatar
  • 51
0 votes
2 answers
270 views

Deal with missing regions which provoke NAs in choropleth map

I have the dataframe below for which I want to create a chorpleth map. I downloaded the germany shapefile from here and then I use this code to create the map. As you can see the map is created but ...
firmo23's user avatar
  • 8,296
0 votes
0 answers
43 views

Shiny - mapping

I am very new to shiny and the mapping function. Based on the code of the link bellow, I did a simple one, which does not work. Can someone tell me why is not working? There is no error shown. However,...
icatalan's user avatar
  • 101
0 votes
1 answer
821 views

Leaflet map with R shows country completely grey

I am starting to become familiar with leaflet in R although I am experiencing some issues. Data works properly when I am plotting the map with ggplot2. However, I was asked to switch to a more dynamic ...
Nicola Caravaggio's user avatar
1 vote
0 answers
107 views

Leaflet not generating properly in dynamic R markdown document

I have asked this question before here. Initially the focus was on a point map, which the answer fixed. However looking at clustered and heatmaps, the issue persists. Point generates fine (fixed via ...
Jonathan West's user avatar
1 vote
0 answers
45 views

Is there anyone who can figure out why popups in my map function are not coming up on the map on click in R? Using leaflet

I'm creating a map with leaflet with zip code and county polygons. I would like for the values for columns "GEOID10" and "percent" from data set df to popup when I click on their ...
divinew99's user avatar
1 vote
1 answer
358 views

Want to add 10 different types of icons to a leaflet map

Look at my R code, here I am able to mark two different types of marker icon but I want to mark for all the 10 values of quakes$mag column with 10 different types of marker icons. quakes1 <- ...
Rakesh Nain's user avatar
1 vote
1 answer
865 views

Issue with R Shiny, Leaflet --> SelectInput to Change Selection in Drop Down Menu

I am a new R Shiny user and I'm trying to map out all the destinations one can fly to from an origin airport. I've successfully created a map that displays all the airports of a country when I hard ...
user2813606's user avatar
0 votes
1 answer
147 views

Multiple Select All buttons causing problems with interactivity in Shiny map

I'm coding an interactive map in R with Shiny and Leaflet. I programmed 1 select all button for the months (checkGroup) and it worked fine, but adding the select all button for the other inputs has ...
softsoap's user avatar
1 vote
1 answer
903 views

How can I add a download button on a map made with leaflet in R?

I tried adding several scripts in Java to create this button, but they have not worked. Could you help me? I show you the last thing I've tried. sp %>% leaflet() %>% addTiles()...
NoSe's user avatar
  • 109
1 vote
1 answer
646 views

Leaflet map not rendering in shiny app but rendering in console

I am creating a Shiny App dashboard which involves plotting a map using Latitudes and Longitudes using Leaflet in one of the tabs. I need Leaflet for Zoom and the popup option. However, the map is not ...
user2735443's user avatar
0 votes
0 answers
169 views

R - Leaflet map isn't loading in RStudio or Rshiny App - Proxy Authentication Problem

This is my code: map <- mapLeaflet <- leaflet() %>% addTiles() And this is the error: Failed to load resource: the server responded with a status of 407 (Proxy Authentication ...
Jole's user avatar
  • 1
0 votes
1 answer
643 views

Set more specific zoom layer for png export of leaflet map?

I have to create and export multiple maps that zoom to particular areas of my county. The issue I'm having is that zoom level 12 is too far away, and zoom level 13 is too close. Is there a way to set ...
Abby's user avatar
  • 53

15 30 50 per page