Skip to main content

Questions tagged [r-mapview]

An R package that provides methods for interactive plotting of spatial objects from the sf, sp and raster packages.

r-mapview
0 votes
0 answers
113 views

The mapview() function does not display the map on the display

Recently, the mapview() function has stopped working correctly. Instead of the card, I get an empty display, while everything worked fine before. In order to solve this problem, What is the problem ...
Глеб Зыков's user avatar
0 votes
0 answers
112 views

R Mapview and Leaflet render in quarto and shiny but not in Rstudio when with R 4.4.0

With the new update of R version 4.4.0, mapview and leaflet do not render in the viewer window of RStudio but do render when used in shiny applications or quarto documents. These will preview fine in ...
Andrew's user avatar
  • 145
0 votes
0 answers
37 views

Fitting a Long Legend Within Mapview

I like what mapview outputs but can't really use it with with the burst option (seems to make legend interactive and zooms to group on click) as there's no way to adjust the scale of the legend. Is ...
eMosso's user avatar
  • 1
1 vote
1 answer
36 views

Why and how to fix Mapview not show all points and st_buffer merges some areas R?

I'm building a map with mapview package. However, when I use st_sample and generate points, some don't get mapped. In addition, st_buffer merges some areas (where they should be separate). library(sf) ...
M. Beausoleil's user avatar
2 votes
0 answers
90 views

R mapview choose color of polygon based on color code in column

I got polygon spatial data (could be points too) with a column specifying the color in hex. Could be something like: colfunc <- colorRampPalette(c("gold1", "gold3")) clrs <- ...
N R's user avatar
  • 83
0 votes
0 answers
125 views

Why is there no output for mapview() command in R 4.2.2 (August 2023)?

After installing the "mapview" package in R 4.2.2 and importing its library into a Jupyter notebook, I cannot create any maps. Although the data is loaded, any attempt to render a map figure ...
scottmgeol's user avatar
5 votes
1 answer
376 views

raster and polygons in leaflet, without raster interpolation

I'm trying to display several layers in leaflet (or mapview), one of which is a raster in EPSG:27700. The only way I manage to adequately overlay those layers is through the default latlong projection,...
Yollanda Beetroot's user avatar
2 votes
1 answer
255 views

Raster output from rasterized sf points does not align with points

I am trying to rasterize some points and am getting a mismatch between the points and the rasters despite the crs being the same. If I convert the raster to polygons it lines up perfectly with the sf ...
Blaiso's user avatar
  • 189
1 vote
1 answer
520 views

R: saving a leaflet with white background

I am currently working on a ShinyApp, which includes maps built using sf objects and leaflet. I found the solution to change the initial grey background of the map to a white background (by adding css ...
Maxime Garnault's user avatar
1 vote
1 answer
323 views

Use If clauses in shiny output depending on the existence of input

I'm relatively new to shiny and have been encountering the following problem : I want to display a map (using mapview) with a checkboxinput (filtering stuff) and a different map when all the boxes ...
Maxence's user avatar
  • 29
0 votes
0 answers
434 views

reduce file size of exported leaflet html by linking several layers to the same data (json) instead of keeping the information separately

Generating leaflet html's easily results in a 50-75 MB file (depending on the number of layers). However, they can be zipped to reduce the file size by factors. So i guess there is lots of repetitive ...
Beni's user avatar
  • 251
1 vote
1 answer
879 views

mapview: transparent na.color when displaying raster files

When I plot aerial photographs in mapview a black rectangle is displayed around the picture, which I believe contains NA values and which I would like to remove. Due to the lack of easily available ...
M.Teich's user avatar
  • 607
0 votes
1 answer
1k views

package installation error with 'mapview' package

I am trying to install the 'mapview' package in R. I tried restarting R, clearing the environment, terminating all the sessions, and restarting and with a totally new session.But I keep getting same ...
Wild Ladakh's user avatar
2 votes
1 answer
1k views

Using mapshot() to save mapview(), data layer doesn't show when saving PNG

This has to be an easy fix but this is my first time using mapview and mapshot and I'm stuck. I've investigated other postings and the documentation but I can't see a source. I've created an object ...
Alwayslearning's user avatar
0 votes
2 answers
273 views

Map average value on a Choropleth map

I am creating a shiny app that: Allows the user to upload a shapefile (sf_object) "filemap". Based on the uploaded shapefile, the user will then be able to select a column/variable of ...
Ed_Gravy's user avatar
  • 1,995

15 30 50 per page
1
2 3 4 5 6