# Changes between Version 14 and Version 15 of udg/ecoms/RPackage/examples

Ignore:
Timestamp:
Apr 19, 2013 1:44:34 PM (9 years ago)
Comment:

--

### Legend:

Unmodified
 v14 }}} 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. 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.r-project.org/web/packages/akima/index.html akima] provides a extremely fast interpolation algorithm by means of the interp function. {{{ }}} 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. 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.r-project.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. {{{