All Questions
4
questions
2
votes
1
answer
153
views
Combine Multilinestring into one line string to generate regular spaced points using sf
I'm trying to generate random points on a linestring using SF. However, the data is multilinestring and st_line_sample requires linestring. So I'd like to make the multilinestring into only one ...
1
vote
1
answer
113
views
manually fixing colors in the map
The data is:
d.fit.spatial.1914 <- structure(list(country = c("Albania", "Austria", "Belgium", "Netherlands",
"Poland", &...
2
votes
1
answer
469
views
Installing the R package mapview on Ubuntu 20.04
I am trying to install the R package mapview on Ubuntu but I get the error:
ERROR: lazy loading failed for package ‘mapview’
I have tried installing both the CRAN version of mapview and the ...
3
votes
4
answers
1k
views
How to compute all pairwise interaction between polygons and the the percentage coverage in R with sf?
I have polygons where I want to calculate the percentage overlap between them. The idea is that when a polygon intersects another one, the percentage can be calculated on the perspective of one ...