Questions tagged [r-leaflet]

This R package makes it easy to integrate and control the open-source JavaScript Leaflet software in R.

499 questions
0
votes
1 answer

Using specific variables with spatialpolygons for Leaflet mapping

I am trying to produce a map of income levels in various council areas in Sydney using leaflet. While I was able to produce circlemarkers, I have been hoping to produce the same results in polygons. I have come across a shapefile from Councils in…
Greation
  • 73
  • 1
  • 2
  • 12
0
votes
0 answers

Shinyapps: Disconnected from Server

When I deploy my Shiny app the following error appears in the logs: 2019-05-10T18:06:12.616369+00:00 shinyapps[533693]: there is no package called ‘leaflet.minicharts’ 2019-05-10T18:09:31.759973+00:00 shinyapps[533693]: Server version:…
0
votes
1 answer

Is there a way to have leaflet widget shapes clickable with knitting to static HTML output in R?

I am trying to create a Rmarkdown file which I can eventually knit to a HTML document for sharing. The goal is to have a clickable map (example provided) where the user can click map shapes and then add those choices to a summary data table. I also…
0
votes
1 answer

Rendering large tile dataset

I have spent considerable time troubleshooting this problem on SO but haven't been able to find a suitable answer. In short, I cannot view locally stored map tiles using R Shiny and leaflet. I have used gdal2tiles.py to create a nested directory of…
Simon
  • 991
  • 8
  • 30
0
votes
0 answers

No output when using leaflet and shiny

I'm looking to integrate leaflet maps in my shiny app. But when I do this, I have no output printed and I receive an error in my browser console : Uncaught TypeError: Cannot read property 'filter' of undefined at…
Pihk
  • 17
  • 2
0
votes
1 answer

Creating a map based on address or xy coordinates - convert to lat and long?

I have a probably very simple question (I'm rather new to R), but after searching for a while I didn't manage to find what I was looking for. I need to create a map in R. Preferably with the Leaflet packages, but I'm absolutely open to other…
JS93
  • 25
  • 5
0
votes
1 answer

How can i count the passengers at the subway station?

Hello this is my first question on stackoverflow, i hope i'm doing everything right. I want to count the passengers at the subway station. I have four vectors with longitude and latitude of passengers and station. I represent the stops by circles…
review
  • 43
  • 5
0
votes
1 answer

Modifing line weight in addPoylines in r leaflet

I have the following R code library(leaflet) library(dplyr) dest_df <- data.frame (lat = c(41.82, 46.88, 41.48, 39.14), long = c(-88.32, -124.10, -88.33, -114.90), val= c(3,4,5,6) …
M. Monti
  • 1
  • 1
0
votes
2 answers

R Leaflet Label Set direction

Please have a look at the below example code, I would like to use the label direction (MyDirection), which is stored in df to have different label directions within my map. I can set every label to a specific direction like direction = "top", but…
LePopp
  • 61
  • 6
0
votes
1 answer

Use clickEvents in shiny with tmap

You can use clickEvents for the tmap package in shiny as in this example for leaflet in shiny. However, I don't know how to acces the click events. On each click an Id is given, but where is this id linked to? See the below example where the click…
JdP
  • 714
  • 7
  • 14
0
votes
1 answer

SelectInput and Leaflet not connecting

I am trying to use shinyApp with the leaflet package. I have tried using the "SelectInput" function in the dashboard to create a reactive map based on the input selected(country).However, I am not able to make the leaflet and the SelectInput connect…
Rooty1985
  • 83
  • 1
  • 3
  • 10
0
votes
1 answer

Change legend bin size in leaflet

I created a density map but R has chosen bin sizes that are too wide. I want to create my own bin sizes. https://i.stack.imgur.com/p49qc.jpg The image shows bin sizes at a full integer and it does not produce anything meaningful. I also cannot get…
Jacky
  • 710
  • 2
  • 8
  • 27
0
votes
1 answer

Images won't display for leaflet-measure plugin in R powered custom visual for PowerBI

We are trying to create a custom visual using leaflet for PowerBI to use in our application. The visual works perfectly on the PowerBI desktop, however, when the visual is uploaded to PowerBI embedded, the images for plugins such as leaflet-measure…
0
votes
1 answer

Chloropleth graph colours in the wrong countries

Bit of a strange problem using the leaflet package on R. I'm trying to colour in certain countries depending on how many users are in those countries. Everything goes well, except the countries are being coloured in with the wrong data. So for…
FPL
  • 456
  • 4
  • 21
0
votes
1 answer

plotting data through Leaflet/ Leaflet.glify

i was trying to run plot of 300,000 data points through leaflet but failed miserably. I found an alternative package called "leaflet.glify". However i could not find any proper documentation for it. I was trying to change the color of the datapoint…
Prabesh Kc
  • 27
  • 7