Skip to main content

All Questions

Tagged with
0 votes
1 answer
441 views

Is there a way to display R Leaflet label values in a separate box?

On the JS Leaflet page the population density is shown in a panel in the upper right hand corner when a state is hovered over. Is there a way to create a similar box in Leaflet using R? I created a ...
Liz's user avatar
  • 23
0 votes
0 answers
40 views

How to reduce incremental zooms in leaflet?

I am making maps in leaflet and cannot change the zoom increment for some reason. I don't have the option to use var map = L.map('map', { zoomSnap: 0.25 }); I also don't have these functions ...
ASHooper93's user avatar
0 votes
1 answer
32 views

changing the destination on the map by the button shiny

I have a shiny app which displays a map and can choose a few countries based on the selectinput function. I'm trying to replace the selectInput with the button, so instead of choosing the country, ...
EnriqueGG's user avatar
  • 189
2 votes
0 answers
215 views

modify icon size using iconCreateFunction in leaflet for R

Using the quakes data as an example and the code below, I wish to modify the icon size. I need to keep the rest of the code as unchanged as possible, I just want to make the icons smaller. Can anyone ...
Esteban's user avatar
  • 23
0 votes
1 answer
84 views

Why does the shiny app give me an error when trying to use osrm trip in a reactive()?

Hello and thanks for reading me. I am trying to make an app that generates a route to the closest location of the dataframe considering the current location, but when doing the calculations in shiny ...
Jorge Hernández's user avatar
0 votes
2 answers
93 views

R Displaying Points Twice?

I have this code for an interactive map in R: library(leaflet) library(inlmisc) Long = rnorm(1000, -71, 0.5) Lat = rnorm(1000, 42.3, 0.5) loc = rep("loc", 1000) Name = rep("Location&...
stats_noob's user avatar
  • 5,689
0 votes
1 answer
219 views

Curved flow lines in leaflet minicharts R

I'm creating a flow map in R Leaflet which will eventually go through Shiny. This is a very simplified example of what it looks like: How can I curve the flow lines? Reproducible example: library(...
anorlondo's user avatar
  • 345
-1 votes
1 answer
26 views

Lag in HTML Outputs within R

I found this post on stackoverflow to make an interactive map in R (second answer): Search button for Leaflet R map? library(leaflet) library(inlmisc) df = read.csv(textConnection( 'Name, Lat, Long &...
stats_noob's user avatar
  • 5,689
1 vote
1 answer
318 views

Only Showing Individual Points on a Map

I have this following map made from simulated data in R: First I loaded the libraires: library(leaflet) library(leaflet.extras) library(dplyr) Then, I simulated the random data for this example: ...
stats_noob's user avatar
  • 5,689
0 votes
0 answers
120 views

Specify range of values to display in leaflet map?

I'm very new to using leaflet and the GBIF API in R, but I'm wondering how to display tiles up to a particular year (like 'year<=2015') rather than just the tiles with the year equivalent to a ...
EML's user avatar
  • 1
0 votes
1 answer
36 views

Loop through dataframe and produce individual location maps

I want to loop through a dataframe that contains different monitoring sites and produce an individual leaflet map for each site. See the minimal example below. I realize the loop, as written, will ...
happymappy's user avatar
1 vote
1 answer
224 views

How to sub and superscript an R leaflet plot legend

How can I superscript and subscript an R leaflet legend title. For example m2 in the example below? library(leaflet) library(mapview) ## for the breweries dataset ## palette for the legend palB <- ...
Blaiso's user avatar
  • 189
2 votes
1 answer
439 views

Creating dynamic legends in R/leaflet

I am wondering if there is a way to create dynamic legends based off the values in a specific column. For example looping through the Items$color category and listing Green, Orange and Red with their ...
Raul's user avatar
  • 271
0 votes
1 answer
120 views

leaflet markers dissapear in r shiny tabsetPanel (when on mobile)

I'm working on a Shiny app that uses the leaflet package. My leaflet map is embedded in a tabsetPanel where the first tab shows a plot and when you click on the second tab you'll see the leaflet map ...
needs_more_jpeg's user avatar
4 votes
1 answer
824 views

Customizing Leaflet Map Icons in R

I started to learn how to use the search features in leaflet maps - below is a leaflet map which allows you to search for a city (i.e. single search term): library(leaflet) library(leaflet.extras) ...
stats_noob's user avatar
  • 5,689

15 30 50 per page
1
5 6
7
8 9
124