Questions tagged [r-mapview]

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

85 questions
0
votes
1 answer

Converting a data frame to a spatial object

I'm trying to publish a map on Shiny, but keep running into this issue. Let's call the data.frame region. Here are the columns: library(mapedit) library(mapview) library(shiny) library(leaflet) library(leaflet.extras) …
user9302275
0
votes
1 answer

How to adjust the size of popup image in leaflet map in flexdashboard?

There is a similar question for R shiny here:Control the size of popupImage from leaflet in r shiny But I am using flexdashboard. I have no background in CSS. How can I adjust the size? Sample code below: library(leaflet) library(mapview) leaflet()…
umair durrani
  • 5,597
  • 8
  • 45
  • 85
0
votes
0 answers

RGB colors in a raster cube visualization in R

I am using the package mapview to plot a 3D raster cube from a raster stack. > S2_images class : RasterStack dimensions : 660, 1074, 708840, 6 (nrow, ncol, ncell, nlayers) resolution : 10, 10 (x, y) extent : 219800, 230540, 4097480,…
GCGM
  • 901
  • 1
  • 17
  • 38
0
votes
1 answer

Why do I get an error when using mapedit::selectFeatures with mode = 'draw'?

I'm using the selectFeatures function within the R package called mapedit. I want to be able to select all polygons that fall within (either wholly or partially) an area drawn using the tools in the mapedit viewer. Using the following code from the…
Jody Biggs
  • 35
  • 1
  • 5
0
votes
1 answer

Adding different pop-up iframes to multiple points

I'm building a map using the mapview R package following this tutorial. Adding a different image to each point using popup=popupImage(images,src = "remote") works fine. The issue is with iframe popups. The example using popup =…
W148SMH
  • 152
  • 1
  • 11
0
votes
0 answers

apply mapview::popupTable function including multibyte column name

How to apply mapview::popupTable() function to data.frame including multibyte character in column name(using wondows OS)? library(mapview) data(atlStorms2005) test1 <- atlStorms2005 test1@data$日本語 <- as.factor(c("mapview")) mapview(test1) …
ogw
  • 353
  • 1
  • 2
  • 13
0
votes
1 answer

Visualization issue while using Leaflet

I have two data frame as below: PickUP <- data.frame(pickuplong = c(-73.93909 ,-73.94189 ,-73.93754,-73.91638,-73.92792 ,-73.88634), pickuplat =c(40.84408,40.83841,40.85311,40.84966,40.86284,40.85628)) Dropoff <- data.frame(pickuplong =…
Behzad
  • 19
  • 1
  • 5
0
votes
0 answers

display of mapview object in shiny

I’m trying to have two spatial plots side-by-side in shiny, and I was suggested a powerful function, sync of mapview. sync allows to have multiple maps for comparison, a great feature, but unable to figure out integrating or calling its output in…
SatishR
  • 230
  • 3
  • 13
0
votes
1 answer

Place non-geographic mapview object into Shiny app

Basically my question is how to place either a PNG or a mapview object into a shiny app to enable placement of markers over it. I have 15 non-geographic floorplan mapview objects like PNG above that were converted to mapview objects using the code…
monkeyshines
  • 1,058
  • 2
  • 8
  • 25
-1
votes
2 answers

Changing Viridis to different color palette

How can one change this viridis color platte as shown below to other types of viridis color palette??The code used and the map displayed below is shown for reference:
Prabhakar
  • 61
  • 8
1 2 3 4 5
6