All Questions
86
questions
0
votes
1
answer
80
views
How to set an anchor and create polygons from shapefile
I am following up on the example here: How to make small polygons from shapefile and extract coordinates
I am trying to adapt that example to a different shapefile but I am getting errors. The new ...
1
vote
2
answers
227
views
How to make small polygons from shapefile and extract coordinates
I have a small shapefile here: https://login.filesanywhere.com/fs/v.aspx?v=8c6d62865c626fb4a2ab called bay.RDS
library(tmap)
library(leaflet)
library(mapview)
bay <- readRDS('bay.RDS')
mapview(...
1
vote
1
answer
553
views
Add a title to the Leaflet map
I have a simple question but still do not know how to find the answer to it. All I need is to add a title to the leaflet map. I do not need it to me on the map, just above it as in a usual ggplot map.
...
0
votes
0
answers
53
views
Show the aggregate value on markerClusterOptions in R
I want to do a map in R, that will show the points in clusters when you zoom in/zoom out and in the same time show a aggregate value.
Now I have this code:
m <- leaflet(acdt_1, width = "200%&...
0
votes
1
answer
173
views
RShiny display multiple leaflet maps on the same plot
I have a shiny app where the user can select to display a specific leaflet map (on 51 available), or all leaflet maps (the 51 on 11 columns and 5 rows).
To display multiple leaflet maps on the same ...
0
votes
0
answers
163
views
Add Polygon Layers to Leaflet Map (with labels and legends)
I am trying to combine 4 leaflet maps into one, where you can filter the layers using addLayerControl. Each layer has popups when you hover over the polygon with the corresponding variable (numeric) ...
1
vote
1
answer
238
views
Create a map in R and put some coordinates
I have a dataset with three variables related to coordinates: UTMX, UTMY and HUSO.
I'd like to create a map where all the points were shown.
Here an example of the dataframe:
x y huso
...
0
votes
0
answers
40
views
How to reduce incremental zooms in leaflet?
I am making maps in leaflet and cannot change the zoom increment for some reason.
I don't have the option to use
var map = L.map('map', {
zoomSnap: 0.25
});
I also don't have these functions ...
0
votes
2
answers
93
views
R Displaying Points Twice?
I have this code for an interactive map in R:
library(leaflet)
library(inlmisc)
Long = rnorm(1000, -71, 0.5)
Lat = rnorm(1000, 42.3, 0.5)
loc = rep("loc", 1000)
Name = rep("Location&...
0
votes
1
answer
2k
views
Error in UseMethod: no applicable method for 'metaData' applied to an object of class "NULL"
I'm trying to add different icon to the markers which I'm trying to show. I have different category like this
category <- data() %>%
dplyr::select(category) %>%
distinct()
and it looks ...
1
vote
0
answers
695
views
Learning How to Use Shapefiles in R
I am trying to learn more about "shapefiles" and how to plot them in R. Ideally, I would like to make a "leaflet map" (interactive or static) that looks something like this: https:...
1
vote
1
answer
3k
views
How to successfully save leaflet map in a .png image?
Out of geocoordinates, I want to draw simple plain points on a city map and save the output as a .png. I'm on Linux Ubuntu 22.04LTS. For the first part I found a pretty brief and straightforward ...
0
votes
0
answers
53
views
Tiny shiny app to monitor pollinators: leaflet map rendering locally but not rendering online
I work for a biodiversity monitoring project and I am trying to build a shiny app to better organize our fieldwork. I am basically trying to publish a map of our study area overlaid with a grid (our ...
0
votes
1
answer
128
views
R shiny renderLeaflet not rendering
I am trying to create an interactive map that displays locations only in the district chosen by the user in R shiny.
rm(list=ls())
library(readxl)
library(shiny)
library(tidyverse)
library(leaflet)
...
0
votes
0
answers
504
views
Add axis to leaflet map
How can you add an x and y axis to a leaflet map figure -- in the case of a map how to add the longitude and latitude?
For the figure below, how can axis be added please?
library(leaflet)
leaflet() %&...