Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to make an interactive web mapping application, which will grid and contour user data. My plan is to implement R scripts with Shiny, but the only R package I can find to do this is gstat. And with gstat, the only option for gridding that I can see is Kriging.

Is Minimum Curvature available in some CRAN package, or is my plan completely unrealistic and I should use something like GRASS?

Thanks for your help

share|improve this question
1  
In the R package 'sp' there are IDW, and three kriging methods. There's also TPS: See: stackoverflow.com/questions/11715169/…. And in GRASS you can choose either IDW, RST (regularized spline with tension), B-Spline and in GRASS 7 there's a module for kriging. –  Micha May 31 '13 at 19:19
    
Micha - thanks very much! I will look at them. –  MrX May 31 '13 at 19:34
    
Hi again Micha - I didn't find them in 'sp', but they are in 'gstat'. That's probably what you meant, and thanks for the info. –  MrX May 31 '13 at 19:39
1  
For easy kriging there's also the automap package, which in part is a wrapper to gstat. –  Spacedman Jun 16 '13 at 22:40
add comment

1 Answer

There are several ways you could tackle this. There is a package kriging that does ordinary kriging. There are several methods in the package gstat, package raster has contour function for rasters as well as many other things. The package in itself is very complete. The fields package has a Tps function which could satisfy you:

Description: Fits a thin plate spline surface to irregularly spaced data. The smoothing parameter is chosen by generalized cross-validation. The assumed model is additive Y = f(X) +e where f(X) is a d dimensional surface. This function also works for just a single dimension and is a special case of a spatial process estimate (Kriging). A "fast" version of this function uses a compactly supported Wendland covariance and computes the estimate for a fixed smoothing parameter.

Even though it does not seem to be exactly what you want at first glance (I have not used it), it could maybe replace it.

In regards to the other topic, using shiny sounds very cool but I think it could be cumbersome. Not sure. I know it is easy to use but still, maybe it would be easier to use for example the plotKML package and work directly on google earth. I have seen some really beautiful examples. It is very versatile and has a lot of options for aesthetics. It has a lot of interactive options too, like scroll bars to see the evolution of things in time and etc...

plotKM example

This video has awesome examples of what can be achieved with this package. And I beleive it's rather easy to embed google earth into any web page. This is an example of how to embed your earth engine projects into your website.

share|improve this answer
    
Thanks JEquihua - I will look at plotKML. R is just so vast, I'm only beginning to understand what it and it's packages can do. So thanks for the suggestion. –  MrX Jun 17 '13 at 2:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.