Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
53 views

How to create a 'count' choropleth map? Large dataframe with many different values overlain on separate geodatabase

I am aiming to plot a choropleth map (plotted using the polygons from a geodatabase) that will count the number of instances per region (wildlife management units) from a separate data frame (...
Flavia Rasmussen's user avatar
0 votes
1 answer
57 views

Transform point into UTM 32N

i am coding with R and RStudio. I have a set of polygons in one in my global environment called buek250_shapefile. I am able to plot them with leaflet. For the next step I wrote a function which gets ...
odcoder's user avatar
0 votes
1 answer
69 views

Longitude and latitude data not generating correct polygons using maps/mapdata/ggplot2 packages

I am trying to draw a map for all province within Egypt using maps and ggplot2 package in R, but I did not find any sub-region (provinces) for Egypt available in the databases of these packages. So, I ...
Mohamed Samir's user avatar
0 votes
1 answer
68 views

What is returned by st_coordinates?

I am in the process of converting R scripts to Python and there are multiple uses of st_coordinates. I know that geopandas has similar functionality in get_coordinates, but st_coordinates apparently ...
wannabeengineer15's user avatar
1 vote
4 answers
167 views

Cumulative length of a LINESTRING using sf or terra

is there a more efficient way to measure the cumulative length of a <LINESTRING> or <MULTILINESTRING>? In other words, I need to measure the distance between points from the start to the ...
atsyplenkov's user avatar
  • 1,249
-1 votes
1 answer
63 views

Count shapefile length (line) in each polygon of another shapefile (grid)

I am trying to quantify the length of a road network, on each cell of a lattice grid. Both my road network and my lattice grid are shapefiles, a polyline and a polygon respectively. I would like to ...
user8780's user avatar
4 votes
2 answers
104 views

reverse st_transform for real-world coordinates

I have a process that rotates specific sf objects, and this works well for rendering, both in ggplot2 and plotly. However, in shiny apps we need to take a user's click and do something useful with it, ...
r2evans's user avatar
  • 159k
0 votes
1 answer
73 views

Logical expressions for spatial geometry and polygon attributes

I want to subset a list of polygons based on (1) whether or not they intersect other polygons in the list in space and (2) an attribute of the polygon that describes time (e.g., when the polygon was ...
gregor-fausto's user avatar
0 votes
1 answer
73 views

Problem creating dynamic Alpha Hull for multiple groups

how are you? I would like your help, please, to create alpha polygons in R for different groups. I would like these polygons to be separated by my "species" column. I understand that the ...
Álvaro Scuack's user avatar
2 votes
1 answer
137 views

How to create a line from 2 sf objects

I have 2 shapefiles that have the same number of rows. I want to create a line for each row. I can't figure out how to do it. Here is my example code library(sf) #> Linking to GEOS 3.11.2, GDAL 3.6....
olivroy's user avatar
  • 821
1 vote
0 answers
65 views

Limit or conditionally modify longitude values in st_buffer

I have a series of lines with endpoints at 180 degrees longitude. When buffering using st_buffer the buffers extend beyond the 180 degree threshold creating non-sensical polygons. I'd like to use the ...
NSievert's user avatar
2 votes
1 answer
102 views

Can I create a series of polygons for diferent categories (minimum convex polygon) on R (sf package)

I'm working with spatial information (sf) in R, and I have a list of species with their respective occurrence points. I would like to obtain a polygon for each species using the st_convex_hull ...
Álvaro Scuack's user avatar
0 votes
0 answers
299 views

How to use st_distance in R

I want to find the distance between points and then filter them to only include points that are >1 km apart. I tried to use st_distance to find the initial distance between points, but I receive ...
Alyssa Cabrera's user avatar
0 votes
0 answers
47 views

Changing CRS of raster and vector data to either similar projected or geodetic crs

This is the output I get when I check the crs of raster and vector data. I want to extract raster data around buffer of district centroids calculated for all the polygons in vector data file. But ...
crawling_ec's user avatar
0 votes
0 answers
50 views

Editing the legend of a ggplot2 map

I created a ggplot2 map, but I'm having trouble putting the geom_points, where they appear within each region coloring, but they should appear separating indicating "city" and "station&...
Dmoura Silva's user avatar

15 30 50 per page
1
2 3 4 5
14