All Questions
42
questions
0
votes
0
answers
55
views
Why are my leaflet points stuck to the map edge?
I try to plot transit stops on a leaflet map, indicating local clustering ("LISA"), based on Moran's I. The map is embedded in an R markdown file.
I've successfully done that with polygon ...
0
votes
0
answers
87
views
Multipage flexdashboard leaflet map issues
I have created a multipage flexdashboard app (.Rmd) in R using shiny runtime. One of the pages is a leaflet map with a large polygon layer. The map initially draws as it should but after I browse ...
0
votes
1
answer
1k
views
How to include a leaflet map (html widget) into a Word or PowerPoint document?
I teach Leaflet to my students to map and analyze spatial data.
I would like them to present some of their work in PowerPoint, Word, and/or PDF while maintaining the interactive features of the ...
0
votes
2
answers
278
views
How to change css in rmarkdown cell & shiny?
I am relatively new in r and creating leaflet plot for which I need a white background instead of grey.
I came across this SO post for same: blank, white background for leaflet map & tried:
Plot ...
0
votes
0
answers
88
views
How to change color of leaflet map around the polygon shape in r? [duplicate]
I am using a shape file in leaflet plot & would like to have white color space external to the outer boundary of polygon shape instead of default greyish color background like color but unable to ...
0
votes
0
answers
219
views
Embedded Shiny Error in R Markdown : object params not found
I am attempting to embed a choropleth graph using leaflet & shiny within a R Markdown document. The code worked fine as a chunk, but produces an error when ran altogether. Everything else in the R ...
0
votes
1
answer
42
views
Mapping San Antonio City Park boundaries
I'm trying to create an interactive Markdown webpage in R-studio.
I need to use the leaflet package to complete this assignment.
I want my map to display polygon shapes that display park boundaries in ...
0
votes
1
answer
559
views
For Leaflet in R, can you add a button that adds and removes polygons for each map layer?
If we just take a standard leaflet map like the one below:
library(leaflet)
library(maps)
mapStates = map("state", fill = TRUE, plot = FALSE)
leaflet(data = mapStates) %>% addTiles() %&...
0
votes
1
answer
128
views
Error message in my R-markdown file (post-knit)
I'm using a markdown file to build a leaflet map in R, and after I've knitted my document, I get this error message in my rmd file:
## although coordinates are longitude/latitude, st_union assumes ...
0
votes
0
answers
588
views
Static leaflet map markers cut off when knit to PDF in R markdown
I am trying to produce a static map via the leaflet package so I can knit it to a PDF using markdown but the circle markers on the map keep getting cut off and I can't for the life of me figure out ...
1
vote
1
answer
188
views
Browser inconsistency with the leaflet::addMapPane() function
I have a problem integrating leaflet maps in my blogdown website whenever using the addMapPane() function to create different panes. The problem is that, when using Safari, everything works fine, but ...
1
vote
0
answers
108
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 ...
5
votes
2
answers
3k
views
Leaflet not rendering in dynamically generated R markdown html knitr
I've created a R markdown report where the sections and tabsets are dynamically created.
I have an issue where the Leaflet maps are not being generated in the output, but rather a blank white space. ...
0
votes
1
answer
1k
views
How to fix distorted interactive popup of ggplot figure in leaflet map
Need help/advice on fixing distortion with the popup plots in html file.
Changing the shape/size options within leaflet don't help.
I suppose making this a ShinyApp might work better, but I prefer to ...