Questions tagged [mapview]

An R package to visualize or plot spatial data interactively

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

How to add the mapview layers in Leaflet maps in r shiny app?

server <- function(input, output){ output$map <-renderLeaflet({ df_data <- uploadshapefile() ... df_data <- as.data.frame(df_data) df_data@data$ id <- nrow(df_data) lm....
0
votes
1answer
26 views

Base-R legend for quick plot of sf-objects

I have two sf-objects that are polygons and one that is a layer of points. The attributes (columns) don't really matter for quick visualization purposes. I just want to make a basic legend and give ...
2
votes
0answers
26 views

BoundingBox around plot in mapview

I wanted to plot some raster-data with mapview. I always get this greyish bounding box around my data though. Anybody an idea of what this might be? I just call mapview(<raster>)
1
vote
0answers
43 views

Setting up leaflet map in R using if/else if/else filtering

I'm trying to put together a map for work. Right now, the script looks as such (The shape file data can be downloaded here): library(tigris) library(mapview) library(leaflet) library(sf) library(...
0
votes
1answer
30 views

Custom Legend Mapview

I want to add a really simple legend to my mapview-map. I have a sfc_MULTILINESTRING-object called path and a sfc_POINT-object called places. I just wanted to have a legend that shows a line and says "...
1
vote
1answer
90 views

Autoinstall dependencies in RStudio [closed]

Is there any way to autoinstall the packages another package depends on. I just downloaded RStudio 1.3.62 and can't remember having these issues before. They looked like this when I tried to install ...
0
votes
1answer
57 views

Use mapview r package to display vector data with outline only

I'm creating a map in r using the mapview package. I have a raster layer with a vector layer displayed over it. I want to view the raster data completely. How do you set vector data to be completely ...
1
vote
0answers
1k views

Adding polylines to leaflet map in R

I am trying to add great circle routes between various regions in R. Here's the sample data: structure(list(CommencingRegion = c("RedSea", "EastAfrica", "GulfofMexico", "FarEast", "RedSea", "...
0
votes
1answer
194 views

r-Mapview non reponsive with large simple feature dataframe?

I am trying to visualize a large sf dataframe with around 1000 rows containing linestrings with mapview::mapview() in R. Unfortunately a warning comes up when I perform the command: mapview(data....
2
votes
1answer
821 views

How to embed a mapview map in a Jupyter Notebook with IRkernel?

I'm looking to integrate some awesome mapview interactive maps in a Jupyter Notebook with the IRkernel. I would like to know if: Is it possible? How can I achieve that? Is there any workaround using ...
2
votes
1answer
687 views

How to display legend in mapview when using cex argument

Giving the example: library(sp) library(mapview) data(meuse) coordinates(meuse) <- ~x+y proj4string(meuse) <- CRS("+init=epsg:28992") mapview(meuse, cex = "cadmium", legend = TRUE) I was ...
5
votes
1answer
803 views

Enabling hover popup window for feature IDs in Mapview package for R

I've been working with interactive mapping within R for a while now and most of my experience lies in Leaflet (mostly the R package, but also a bit in Javascript). I just recently delved into mapview ...