# Theoretical variogram for a field trial with 10 columns and 20 rows, based
# on column and row autocorrelations of 0.5 and 0.7, and a proportion of
# spatial trend of 0.5. The remaining proportion represents random error.
variogram <- theoretical_variogram(
ncols = 10,
nrows = 20,
varR = 1,
col.cor = 0.5,
row.cor = 0.7,
prop.spatial = 0.5
)
# Theoretical variogram
variogram
# Extract the data frame with the column and row displacements, and the
# theoretical semivariances.
variogram_df <- variogram$data
Run the code above in your browser using DataLab