All Questions
10
questions with no upvoted or accepted answers
2
votes
0
answers
229
views
Display a projected raster on a projected basemap in R/leaflet?
Is it possible to display a projected raster on a projected basemap in R/leaflet? The addRasterImage() functions says that the projection needs to be in EPSG:3857. Can this not be changed by setting ...
2
votes
0
answers
1k
views
How do I add a raster to a leaflet map in r that nicely covers the land, and doesn't have gaps?
I have a dataset of several thousand geographical points, each assigned a cluster (in my reproducible example below I simplify this to 8 points). I want to color an entire global map (only the ...
1
vote
0
answers
1k
views
How to plot a large rasterfile quickly in R leaflet with shiny
I obtianed a large rasterfile (.asc file), which I can import in R and plot on a leaflet map. Because the file is pretty big, it takes about 40 seconds before the rasterimage is plotted on the basemap....
1
vote
0
answers
69
views
How are my popups not showing in my Leaflet map?
How can I make popups show up in leaflet that I plot using this code?
leaflet(df) %>%
addTiles() %>%
setView(-119.09, 43.70, zoom = 5) %>%
addCircles(~long, ~lat, popup=df$hrus, color="...
1
vote
1
answer
3k
views
Project Raster Stack as animation or GIF Leaflet
Is there any way to project raster/images as animation onto Leaflet?
In R raster package we can animate raster layers with: animate(rasters). And you can save it as GIF with:saveGIF(animate(rasters))....
1
vote
1
answer
504
views
Raster package doesn't work with my shiny server
I am trying to put a script on a shiny server. This script is working well when I type it in the R console. This is a R script using shiny.
library(shiny)
library(htmlwidgets)
library(raster)
library(...
0
votes
0
answers
545
views
How to filter a raster layer and plot only the cells above a certain value in R using Leaflet?
I have a raster layer that contains 24-hour snow accumulations across the United States. The data can be pulled from here:
https://www.nohrsc.noaa.gov/snowfall_v2/data/202105/...
0
votes
1
answer
696
views
How to filter Raster or only plot certain raster category values in R?
I have multiple years of Land Cover Raster data in R whose attribute tables look like this (both screenshot and code):
ID COUNT CLASSNAME
11 525631 Open Water 0 0 ...
0
votes
1
answer
207
views
Combining Spatial Dataframes with different columns
I have three different spatial dataframes that I'm trying to combine as one big one. The reproducible code looks like this:
library(sf)
library(sp)
library(leaflet)
library(tigris)
library(rgdal)
...
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 ...