[R-sig-Geo] Help: CDF plot
Zia Ahmed
zua3 at cornell.edu
Thu Oct 21 20:42:56 CEST 2010
I want to write a R- function to make a CDF plot of all realizations
(sim1, sim2, sim3........) with CDF of observed data (suppose zinc of
muse data). Help will be appreciated
Thanks
Zia
library(gstat)
data(meuse)
data(meuse.grid)
coordinates(meuse) = ~x + y
coordinates(meuse.grid) = ~x + y
lzn.vgm <- variogram(log(zinc) ~ 1, meuse)
lzn.fit <- fit.variogram(lzn.vgm, model = vgm(1, "Sph", 900, 1))
lzn.sim <- krige(log(zinc) ~ 1, meuse, meuse.grid, v.fit, nsim = 6, nmax
= 40)
/lzn.sim at data <- exp(lzn.sim at data)/
/ /
/ /
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20101021/9857b9c7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zua3.vcf
Type: text/x-vcard
Size: 281 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20101021/9857b9c7/attachment.vcf>
More information about the R-sig-Geo
mailing list