My polygon has the following structure: I'm trying to use the spatstat.geom package to convert t1 to class owin object : And the coordinates in ...
My polygon has the following structure: I'm trying to use the spatstat.geom package to convert t1 to class owin object : And the coordinates in ...
I am trying to color a set of geographical points by a time variable using the tmap function tm_dots, but it keeps treating the time variable as a cat ...
I have a large sf-object with LINESTRING-geometry (~ 100000 rows). Of this object, I want to change the first and last coordinate/point of each linest ...
I have code and data like that to map some locations in the USA: I have the output like this: I am looking to exclude some levels like (0,0002,000 ...
I have some points (lat and long) like this: To map this, I have a code like this: code1 However, the outcome does not show the points correctl ...
Since this is not the first time I am experiencing issues with dplyr::filter() in combination with an sf object stored under /data/ when developing so ...
I am trying to create a map in ggplot with a SpatRaster basemap (CRS 26913 - NAD83, UTM ZONE 13N). When I try to use the function annotation_scale to ...
I hava a task for my college in which I need to transform coordinates from a table. So I had one table which had bad typed coordinates and the code wo ...
I have a dataframe with 2 pairs of UTM (32N) coordinates and I need to compute the differences in km between each of them, from origin to destination. ...
I have a lot of points to map (density). I would like to modify the number of levels in the map to the lower numbers, so instead of having multiple co ...
I am trying to extract the names of the objects in a list, they are all sf. So I cannot use names. NULL I need object names in a vector to replace ...
I would like to combine a shapefile map of some US states on top of a raster map obtained from using library ggmap. This is the code I have This i ...
Context I am in the process of developing a custom star map package called starBliss. While I thought I sucessfully figured out what I needed to from ...
Using shapefiles downloaded from this website, I'm trying to obtain the (area of the) intersection of geometries, where each of these geometries is in ...
I have two shapefiles: One Hexagonal Grid, One Bounding Shapefile: I am trying to clip the Grid to the Shapefile BUT no matter how I try st_interse ...
I am using R to draw a map of China and the USA. I would like to map the "holistic thinking" across these two countries. Could you help me with the fo ...
I am getting an error message when trying to pull great lakes data using the rnaturalearth package. I've been using this same code for a while and am ...
In my toy/sample code below, I make a grid covering the world, and then use this grid to split a large complicated worldwide dataset into a file per e ...
I'm using R's summarize function in the sf package to dissolve the boundaries of some polygons, but I'm having problems as it returns an error in some ...
The current versions of terra and sf do not support direct reading of 7zip compressed files, because GDAL does not support it yet. But it seems that t ...