English 中文(简体)
以 gstat 变量表示的距离单位是多少?
原标题:What are the units of distance in gstat variogram?
  • 时间:2012-05-26 21:20:51
  •  标签:
  • r
  • spatial

这是><这个问题 。我现在已经设法用对该问题的答复绘制了数据的方略图。我使用的代码(这里的 im 是一个变量,包含dput 数据,在上提供的数据, https://gist.github.com/2780792

library(gstat)
point_data <- as(im,  SpatialPointsDataFrame )
v <- variogram(band1 ~ 1, data = point_data)
plot(v)

This gives me the following plot: enter image description here

可以看到,距离轴上的数值介于0至150之间。然而,数据单位为度:

> head(coordinates(point_data))
             x        y
[1,] -1.849353 52.06165
[2,] -1.759728 52.06165
[3,] -1.401227 52.06165
[4,] -1.311602 52.06165
[5,] -1.221977 52.06165
[6,] -1.132352 52.06165

鉴于这一点,X轴上的距离度量单位是什么?我期望它们与坐标站的单位相同。它们与坐标站的单位是多少。 3米是没有道理的, 我猜它们可能是千米。

在Gstat手册里我找不到任何关于这个的信息 所以我估计他们用的是基础数据单位 但情况似乎并非如此

有什么想法吗?

最佳回答

我发现一些人在邮件列表中提出了类似的问题,并重新核对了帮助文件的细节。您的数据没有预测(projlonglat ) 。 “ a href=” http://stat.ethz.ch/CRAN/web/packages/gstat/gstat.pdf ” rel= “noreferr” 文档 。 我在邮件列表中发现的信息显示,它应该以 http://en.wikipedia.org/wiki/Greater_terrate' rel=“noreferrer” > grandcour 距离 < /a> 。 请查看 varigraph 中的预测(逻辑)参数:

For projected data, Euclidian distances are computed, for unprojected great circle distances (km).

问题回答

暂无回答




相关问题
How to plot fitted model over observed time series

This is a really really simple question to which I seem to be entirely unable to get a solution. I would like to do a scatter plot of an observed time series in R, and over this I want to plot the ...

REvolution for R

since the latest Ubuntu release (karmic koala), I noticed that the internal R package advertises on start-up the REvolution package. It seems to be a library collection for high-performance matrix ...

R - capturing elements of R output into text files

I am trying to run an analysis by invoking R through the command line as follows: R --no-save < SampleProgram.R > SampleProgram.opt For example, consider the simple R program below: mydata =...

R statistical package: wrapping GOFrame objects

I m trying to generate GOFrame objects to generate a gene ontology mapping in R for unsupported organisms (see http://www.bioconductor.org/packages/release/bioc/vignettes/GOstats/inst/doc/...

Changing the order of dodged bars in ggplot2 barplot

I have a dataframe df.all and I m plotting it in a bar plot with ggplot2 using the code below. I d like to make it so that the order of the dodged bars is flipped. That is, so that the bars labeled "...

Strange error when using sparse matrices and glmnet

I m getting a weird error when training a glmnet regression. invalid class "dgCMatrix" object: length(Dimnames[[2]]) must match Dim[2] It only happens occasionally, and perhaps only under larger ...

Generating non-duplicate combination pairs in R

Sorry for the non-descriptive title but I don t know whether there s a word for what I m trying to achieve. Let s assume that I have a list of names of different classes like c( 1 , 2 , 3 , 4 ) ...

Per panel smoothing in ggplot2

I m plotting a group of curves, using facet in ggplot2. I d like to have a smoother applied to plots where there are enough points to smooth, but not on plots with very few points. In particular I d ...

热门标签