Questions tagged [shiny]

Web Application Framework for R

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
412 views

Selecting and deselecting markers in leaflet under R shiny?

I would like to write a script that selects a marker on the map whenever I click on it and then deselect it when I click/select another marker (that is, so that no more that one marker is selected on ...
2
votes
0answers
463 views

R Shiny / leaflet map: Projection problem in creating map in Plate Carree projection

I'm trying to create an R Shiny map using the leaflet package to display input layers in the Plate Carree projection rather than the default Spherical Mercator projection. I've input OSM and WMS tile ...
1
vote
0answers
18 views

Error while rendering Leaflet map on Shiny

I have been trying to reproduce a Leaflet map on a Shiny webpage. I have made this code so far: library(shiny) library(shinydashboard) library(leaflet) library(rgdal) library(dplyr) library(DT) Map &...
1
vote
0answers
691 views

How to add a text on a Leaflet map

Each day I need to draw a path on a map and add a text (like 4, 5 or 8 min) indicating how long it takes by car from the starting point to the destination (see the figure below). I thought it would ...
1
vote
0answers
245 views

Shiny leaflet map renders twice on switching input

I'm trying to produce a Shiny app with Leaflet that renders a choropleth map based on different input criteria. The map displays incidents of different types (input$type) and backgrounds (input$...
1
vote
0answers
2k views

Dynamic leaflet scale / zoom / bounds in R Shiny Applications

I've dug into a few older stack exchanges on this topic, but am at a standstill. I am attempting to let leaflet dynamically resize in a large shiny app when the application is resized. I'm doing that ...
0
votes
1answer
39 views

R Shiny Openstreetmaps - lock map within a set of upper and lower bounds

I am using Openstreetmaps with R/Shiny. I am trying to restrict map display to a given range of coordinates, i.e.xmin, ymin, xmax, ymax so that the users of the map won't be able to look other parts ...
0
votes
0answers
67 views

Auto zoom when uploading shapefile R / Leaflet

I would like to configure an automatic zoom at the canvas of the shapefile layer that I upload. For that it would be necessary that a function automatically detects the latitude and the longitude of ...
0
votes
0answers
53 views

Is there a way to get coordinates from a map using Leaflet on a Shiny app in R by clicking, but without a marker?

In this example I have some polygons and I click on the centroids (variable centroides) to get values from a raster (variable s). server <- function(input, output, session) { points <- ...
0
votes
0answers
139 views

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 ...
0
votes
0answers
326 views

How to create a single multi-option Leaflet filter from multiple columns of R data frame in Shiny?

I am creating a Shiny Leaflet app in R where am trying to display locations (markers) that correspond to a multiple dropdown filter. The data I have has many columns, but basically looks something ...