All Questions
Tagged with r-leaflet htmlwidgets
10
questions
0
votes
0
answers
47
views
pkgdown::build_article() fails with large chunk sizes using sf and leaflet, no errors reported when setting quiet=FALSE
pkgdown::build_articles() fails with large chunk sizes
rmarkdown::render() works fine
article fails to render any code or text beyond the failed chunk
no errors are reported with build_article(quiet=...
1
vote
0
answers
166
views
Background tiles are not loaded in saved interactive html maps from leaflet in R
I am creating interactive html maps with leaflet in R and save them as html files with SaveWidget.
It worked fine for months but now the background open street map tiles are no longer shown in the web ...
0
votes
0
answers
1k
views
how to increase the resolution of leaflet maps in R Shiny
I am struggling how to save leaflet maps in a Shiny app in a high resolution.
In the following code a leaflet map is made, and the map can be downloaded by pressing the 'download' button:
library(...
1
vote
1
answer
750
views
Leaflet popup graphs don't correspond to map
I am trying to make a choropleth map as an html widget using the leaflet package. I don't want to deal with shiny for this. I have covid death time series data for each state. I would like to be able ...
4
votes
1
answer
916
views
How to insert saved Leaflet widget into Rmarkdown HTML output
I create a Leaflet widget and save it locally:
library(htmlwidgets)
library(leaflet)
library(sf)
shp = st_read("/path/to/some/shapefile.shp")
m = shp %>%
leaflet() %>%
addProviderTiles(...
0
votes
1
answer
82
views
Specify point radius using Java Script htmlwidget in R leaflet
I am working from (very helpful) code provided here https://github.com/timelyportfolio/leaftime/blob/master/inst/examples/example_leaftime.R
to build a timeseries map using leaflet in R. I can't seem ...
0
votes
1
answer
553
views
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 ...
1
vote
2
answers
2k
views
openweathermap weather tile in Leaflet in R
I am trying to add custom weather tiles on a leaflet map in a Shiny application using leaflet-openweathermap javascript library available here. I am not conversant with javascript and the map doesn't ...
1
vote
0
answers
521
views
Change color of existing polygons onRender function htmlWidgets Leaflet
So I am trying to create a choropleth map of all the counties in the United States where the counties will be colored based on a variety of different variables (e.g. unemployment rate, poverty rate, ...
3
votes
1
answer
658
views
Combine leaflet and markdown in loop
This question shows how to loop over/apply leaflet objects within a markdown file. I'd like to do a similar thing, though I'd like to add additional markdown content.
---
title: "Test"
output: ...