Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
In the R package 'sp' there are IDW, and three kriging methods. There's also TPS: See:…. 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
For easy kriging there's also the automap package, which in part is a wrapper to gstat. – Spacedman Jun 16 '13 at 22:40

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

Your Answer


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.