Changes between Version 14 and Version 15 of udg/ecoms/RPackage/examples
 Timestamp:
 Apr 19, 2013 1:44:34 PM (9 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

udg/ecoms/RPackage/examples
v14 v15 47 47 }}} 48 48 49 Note that the geographical coordinates of the requested spatial domain are nor perfectly uniform, and as a result it is not possible to represent the data as a regular grid. To overcome this problem, we perform an interpolation, although we preserve the native grid cell size of the model (0.75deg) for data representation. The R package `akima`provides a extremely fast interpolation algorithm by means of the `interp` function.49 Note that the geographical coordinates of the requested spatial domain are nor perfectly uniform, and as a result it is not possible to represent the data as a regular grid. To overcome this problem, we perform an interpolation, although we preserve the native grid cell size of the model (0.75deg) for data representation. The R package [http://cran.rproject.org/web/packages/akima/index.html akima] provides a extremely fast interpolation algorithm by means of the `interp` function. 50 50 51 51 {{{ … … 67 67 }}} 68 68 69 In the following lines of code we plot the mean temperature field. In addition, we will also add to the map the point locations of the selected cities for which the time series will be represented. The R package `fields`provides many useful tools for spatial data handling and representation, including a world map that can be easily incorporated in our plots.69 In the following lines of code we plot the mean temperature field. In addition, we will also add to the map the point locations of the selected cities for which the time series will be represented. The R package [http://cran.rproject.org/web/packages/fields/index.html fields] provides many useful tools for spatial data handling and representation, including a world map that can be easily incorporated in our plots. 70 70 71 71 {{{