Questions tagged [geostatistics]
43 questions
0
votes
1 answer
Coefficients estimated using fit.variogram don't match the plot with the model fit (gstat R package)
I'm fitting an exponential model to an empirical semivariogram using the package gstat.
My dataset (data) has latitude and longitude values in decimal degrees.
The range estimated using fit.variogram() doesn't match the range that I'd expect by…

Sil
- 25
- 4
0
votes
1 answer
Coloring a map with different color depths in ggplot2
I'm trying to plot a map of brazil colored with a specific color, "#2D3E50". However, using this color on the map to color from the smallest area (light shade) to the largest area (dark shade) is not working. See below the chosen color that I am…

user55546
- 37
- 1
- 15
0
votes
1 answer
How can I fit two semivariograms in one plot in R?
I tried to plot two semivariogram in one plot but unfortunately it does not work.
I guess the solution is pretty easy but I am at the end of my latin.
This ist the code of the variograms I want to put in one plot together:
variog_iso_a1 <-…

Momo
- 1
- 1
0
votes
0 answers
Problems plotting a variogram
I'm trying to plot a variogram of a Spatial data frame I got but the axis in the plotted image are wrong, they don't allow all points to be plotted. The R-studio version I'm using is 1.3 in Ubuntu 20.
Here is the…
0
votes
1 answer
Variogram in R with distance in km
I'm doing a spatial analysis on my data and I have their localization in terms of longitude and latitude. I calculated the sample variogram in R with geoR and gstat but what I get is the sample variogram with the distance in grades (longitude and…

AliceW
- 21
- 1
0
votes
1 answer
What is the best strategy for determining a GPS tracked user's location, once they have stopped moving for a reasonable period?
What is the best strategy for determining a user's location from a series of GPS fixes, once they are considered not to be moving?
When tracking a user, if they should stop moving there will subsequently be a sequence of fixes roughly in the same…

Mark Melling
- 1,562
- 14
- 15
0
votes
1 answer
Defining new correlation model in gstat package in R?
Is it possible to define and use the new correlation model in vgm function of gstat package in R, in order to simulate random fields?
I need to use correlation function (as suggested here ) for the log-transformed exponentially correlated spatial…

Saubhagya
- 51
- 1
- 4
0
votes
1 answer
Temporal Variogram
I would like to build a temporal variogram, without specifying spatial coordinates as I have only one gauge that I'm studing temporally. Here is a sample of my data:
> head(test)
POSTE DATE RR6
4485 63113001 1358609040 0.0
4486…

I.Seck
- 11
- 5
0
votes
0 answers
Adjustment of some Neighbourless spatial points
Please find the R codes attached herewith.
library(maptools)
library(spdep)
library(leaflet)
library(RColorBrewer)
#Read polygon shapefile from the directory
chi.poly <-…

Apurba Shil
- 23
- 6
0
votes
0 answers
Assigning coordinates to data of a different year in R?
I have got a data frame of Germany from 2012 with 8187 rows for 8187 postal codes (and about 10 variables listed as columns), but with no coordinates. Additionally, I have got coordinates of a different shapefile with 8203 rows (also including…

Kle
- 1
- 1
0
votes
1 answer
Error: package or namespace load failed for ‘geoR’: .onLoad failed in loadNamespace() for 'tcltk'
I am trying to use geoR package (v1.7-5.2) within RStudio (v1.0.153, running under Ubuntu 16.04 LTS), but it seems that some Tcl library needs to be reinstalled:
> library(geoR)
Error: package or namespace load failed for ‘geoR’:
.onLoad failed in…

Tom Hengl
- 166
- 8
0
votes
0 answers
How to convert spatialpointdataframe to polygon and spatial polygon
I failed to convert a spatialpoint dataframe to polygon and then spatialpolygon after days of trial n online search.
The data (a typical geographic data from DHS) has a total of 400 clusters. Here is the url to the data page:
I need to create this…

ATILOLA Glory
- 1
- 2
0
votes
0 answers
Why does gstat.predict() function often return NaN values (GSTAT Package)? (R version 3.3.2, Windows 10)
I am trying to simulate a combination of two different random fields (yy1 and yy2 with different mean and correlation length) with an irregular boundary using Gstat package in R. I have attached the picture of my expected outcome. The code is not…

Saubhagya
- 51
- 1
- 4