r-leaflet Questions
3
Solved
I would like to modify the behavior of leaflet grouping feature to total on grouping and preserve a round red bubble shape dependent on value.
My data contains columns:
lon lat sales_ytd
I woul...
Archibaldo asked 14/2, 2020 at 12:58
4
Solved
I am trying to reverse the value display of my leaflet legend in R. This post covers categorical data, but I am working with continuous data. Here's a toy example:
map <- leaflet() %>% addPr...
3
Solved
I want to access the current mouse position in a leaflet map in shiny. When using shiny you can get the current coordinates of a click event using input$MAPID_click, which contains latitude and lon...
Crawler asked 9/9, 2017 at 16:27
1
Is it possible to get the lat long from a click event in leaflet/shiny (in R) from the tile map? (i.e. NOT from any loaded markers, polygons etc). Just to show positional (lat/long) info i guess.
I...
1
I have created a Quarto blog post which contains many leaflet maps, generated in R. As the data for each map is embedded within the html file, the file itself is very large. This is causing problem...
Bleak asked 8/11, 2023 at 18:17
2
I am rendering some leaflet maps in my shiny app and the problem is that the legend of the map is not displayed correctly and legend items are aligned very weirdly (image 2). I create the same map ...
3
Solved
I'm building a simple Shiny + Leaflet R application to navigate a map over which a raster (from package raster) is plotted with the useful addRasterImage() function. The code is heavily based on Le...
4
Solved
I have raw data which consists of lattitude and longitude of places The sample data is as follows:
EDIT (dput):
structure(list(Lat = c(-33.9409444, -33.9335713, -33.9333906,
-33.9297826), Lon = ...
3
Solved
Am I doing something wrong, or why does the below example not work? I am trying to make leaflet markercluster plugin work with leafletProxy() in an R Shiny app, using the option iconCreateFunction....
Nautch asked 21/12, 2017 at 10:31
3
I am using R, RStudio and the leaflet package to visualise a map.
I would like to get the the min and max lat-longs of of the bounding box of a leaflet object. I think this can be done using Shiny ...
1
I've managed to get OSM tiles downloaded using:
for (zoom in 8:9)
GetMapTiles(lonR = xlim, latR = ylim, zoom = zoom, nTiles = round(c(20,20)/(17-zoom)),
verbose = 1, type = "osm", tileDi...
1
Solved
{leaflet.extras2} implements the leaflet side-by-side plugin and provides this minimal example:
library(leaflet)
library(leaflet.extras2)
leaflet(quakes) %>%
addMapPane("left", zInde...
2
Using the "leaflet" library, I made the following map for these 5 cities:
library(dplyr)
library(leaflet)
map_data <- data.frame("Lat" = c(43.6426, 43.6424, 43.6544, 43.6452...
Hughett asked 20/2, 2022 at 19:7
2
I am fascinated by the solution of grouping markers and presenting counts by groups in form of small piecharts https://stackoverflow.com/a/60525137/3480717
I am R only and do not know JS. I would l...
Dodecanese asked 8/11, 2021 at 8:8
1
Solved
Here is a shiny app:
library(shiny)
library(leaflet)
nc = sf::st_read(system.file("shape/nc.shp", package="sf"))
ui <- function(request){
tagList(
selectInput("color&...
Immoderation asked 9/12, 2021 at 7:21
1
Solved
I am developing a Shiny app that shows a Leaflet map with markers.
The markers are clickable and I collect the IDs of the clicked markers.
But I also want to change the color of a clicked marker. W...
2
I am trying to figure out how, using Shiny App, a user can submit a shapefile via fileInput and then map it on a leaflet basemap. I am stuck on the server.R script and unsure how to handle the user...
2
Solved
Is there a way to implement a time slider for Leaflet or any other interactive map library in R? I have data arranged in a time series, and would like to integrate that into a "motion" ma...
1
Solved
I am trying to have both a scatter plot and a barplot in leaflet. The datetable, the leaflet and the scatter plot work fine. The problem is
the barplot does not work when in leaflet we select some ...
2
The minimal example below renders a leaflet map with 3 markets, and a DT table with 3 records. When a market on the map is selected, so to is the matching record on the table. However, what I canno...
1
Solved
I am unable to plot an interactive map in
colab
A workaround (static image) is in the second cell.
I expect an answer in r-leaflet.
Related blog
Brocatel asked 16/5, 2021 at 2:23
2
I have a saved html widget (from leaflet) that I want to display in a shiny app.
Using includeHTML() works when it is given in ui.R, but not when dynamically called using renderUI(). I have many ....
Fieldfare asked 9/5, 2019 at 17:39
1
Solved
I need to add labels (not poups) to each existing marker on the map. I created labelText variable which stores HTML for a label. And now, when I'm using it with then strange thing happen - each lab...
1
Solved
I would like to create a leaflet map where you can select multiple polygons and this will update the selectizeInput() in a shiny app. This would including removing a selected polygon, when it is re...
1
Solved
I need to take the shapes drawn in an R Leaflet Shiny app using addDrawToolbar in leaflet.extras and save them to a file that can be re-imported by an R Leaflet Shiny app at a later time.
I am focu...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.