All Questions
15
questions with no upvoted or accepted answers
1
vote
1
answer
27
views
Is "knitr" required for certain outputs in R?
I am trying to follow this post on stackoverflow (R Leaflet: Add a Range Slider to Filter Markers without Shiny). I copy and pasted the code below:
library( crosstalk )
library( leaflet )
library( ...
1
vote
0
answers
126
views
Exporting R-leaflet applications as html with full source code
since updating my R verison, R-leaflet applications exported (e.g via saveWidget(map, "map.html", selfcontained = T) don't show the full source code any more but instead reverence different ...
1
vote
0
answers
215
views
R Leaflet - How to combine text and figure in popup?
I would like to combine text and a figure in a Leaflet Popup. I saw this on a website of Deutsche Bahn: Multi-Object-Popup
Website:
strecken.info
For me it would be sufficient to combine two of these ...
1
vote
0
answers
359
views
R Leaflet HTML Formatting
Using Labels along with addCircleMarkers I want to customize the format of labels displayed. This is achieved with HTML as follows.
labels <- sprintf(
"<div style = 'width: 170px; word-wrap: ...
1
vote
0
answers
277
views
R leaflet display the polygon label by default
I am new to the leaflet package.
I am trying to draw two types of polygons and let the user select them and see the borders. These polygons have labels and I want to display them by default. At the ...
1
vote
1
answer
315
views
Why do Leaflet and DT widgets show blank screen if they are saved as HTML in R?
I'm on a Linux environment, and I'd like to make standalone HTML widgets in R using Leaflet and DT, and generating the HTML with htmlwidgets plugin. The problem is that when I try to open these ...
0
votes
1
answer
83
views
Having google search images as leaflet popup
Recently I have been working with the package 'leaflet' in R.
I have already created my interactive map and so on, but I would prefer to style it up a bit.
My program recieves a list of Cities ...
0
votes
0
answers
40
views
When i knit my R markdown it doesn't show leaflet after running showing a Wordcloud
Basically when I knit the R markdown the file shows just the Wordcloud, and not the leaflet map.
If I invert the order everything works fine.
Any suggestion?
My chunks here:
library(tidytext)
library(...
0
votes
1
answer
246
views
R: Using browsable() in leaflet resulting in a smaller screen height
I build a leaflet in R like this:
my_leaflet <- my_data %>%
leaflet (options = leafletOptions(
-
) %>^%
addProvidersTiles(
-
)
setView(
-
) %>%
addMarkers (
--
) %>%
addCircleMarkers(
-
...
0
votes
0
answers
68
views
How do I get includeHTML to work inside multiple TabPanels?
I'm trying to include 2 HTML files in different tabPanel separations for a Shiny app. I do that, and one of the html files renders properly but the other one's widgets just do not display. Anyone know ...
0
votes
1
answer
727
views
Creating label in leaflet map using htmltools produces tiny label
Creating a leaflet map. First step, specify the label. The code used on leaflet github puts
%>% lapply(htmltool::HTML)
after the sprintf() function. However, making it is creating the label as ...
0
votes
1
answer
2k
views
Saving R leaflet-shiny interactive map as HTML executable file
Is there a way to save a leaflet-shiny script as a single executable HTML file? For example for a leaflet script you can use:
saveWidget(map, file = "mymap.html")
Then the html file will contain all ...
0
votes
1
answer
429
views
r - Overlay fileInput on leaflet in shiny
I have a leaflet map in a shiny app. It takes a file from a user and plots that data. It's kind of ugly right now, though. I'd really like to have the fileInput to be overlaid on the leaflet map. In ...
0
votes
0
answers
231
views
Make a local R leaflet html map connect to a dynamic online dataset
I'm working on a leaflet map in R. The coordinates presenting in this map is saved in a google sheet and I'm using read.csv to import the data into R.
Here is my sample code below:
geolocation <- ...
0
votes
1
answer
122
views
Rapache & R for leaflet
I'm trying to make a webpage with Rapache and "Leaflet for R". The main reason I did install Rapache is to use R inside of a html page (with brew). But, I cant figure out how to return my map inside ...